Alternc
latest
Alternc logiel libre pour l'hébergement
|
This class manage piwik statistics management through AlternC, using piwik's "API". More...
Public Member Functions | |
hook_menu () | |
m_piwik () | |
Constructor. More... | |
hook_admin_del_member () | |
hook called when an AlternC account is deleted More... | |
hook_quota_get () | |
Returns the used quota for the $name service for the current user. More... | |
url () | |
user_add ($user_login, $user_mail) | |
user_edit () | |
Change a user @TODO: code this. More... | |
get_site_access ($user_login) | |
get_users_access_from_site ($site_id) | |
get_user ($user_login) | |
get_alternc_sites ($force=false) | |
get_alternc_users () | |
get_users_url_infos () | |
user_has_sites () | |
does this user has piwik websites configured in AlternC ? More... | |
user_delete ($piwik_user_login) | |
Delete a piwik user don't delete it locally unless it has been remotely deleted. More... | |
users_list () | |
user_checkremote ($puser_id) | |
user_remoteauth () | |
user_access () | |
site_list () | |
site_js_tag ($site_id) | |
get_site_list () | |
site_add ($siteName, $urls, $ecommerce=FALSE) | |
site_delete ($site_id) | |
site_set_user_right ($site_id, $login, $right) | |
site_alias_add () | |
clean_user_name ($username) | |
return a clean username with a unique prefix per account More... | |
dev () | |
call_page ($module, $method, $arguments=array(), $output='JSON') | |
call_privileged_page ($module, $method, $arguments=array(), $output='JSON') | |
Public Attributes | |
$piwik_server_uri | |
$piwik_admin_token | |
$alternc_users | |
$alternc_sites | |
This class manage piwik statistics management through AlternC, using piwik's "API".
Definition at line 26 of file m_piwik.php.
m_piwik::call_page | ( | $module, | |
$method, | |||
$arguments = array() , |
|||
$output = 'JSON' |
|||
) |
string | $module | |
string | $method |
Definition at line 475 of file m_piwik.php.
References $msg.
Referenced by call_privileged_page().
m_piwik::call_privileged_page | ( | $module, | |
$method, | |||
$arguments = array() , |
|||
$output = 'JSON' |
|||
) |
string | $module | |
string | $method |
Definition at line 509 of file m_piwik.php.
References $msg, $piwik_admin_token, and call_page().
Referenced by get_site_access(), get_site_list(), get_user(), get_users_access_from_site(), site_add(), site_delete(), site_js_tag(), site_list(), site_set_user_right(), user_add(), user_delete(), and users_list().
m_piwik::clean_user_name | ( | $username | ) |
return a clean username with a unique prefix per account
Definition at line 457 of file m_piwik.php.
References $cuid, $db, and $username.
Referenced by user_add().
m_piwik::dev | ( | ) |
Definition at line 465 of file m_piwik.php.
m_piwik::get_alternc_sites | ( | $force = false | ) |
Definition at line 187 of file m_piwik.php.
References $alternc_sites, $cuid, $db, and $msg.
Referenced by get_users_access_from_site(), site_add(), and site_list().
m_piwik::get_alternc_users | ( | ) |
Definition at line 198 of file m_piwik.php.
References $alternc_users, $cuid, $db, and $msg.
Referenced by get_users_access_from_site().
m_piwik::get_site_access | ( | $user_login | ) |
Definition at line 140 of file m_piwik.php.
References call_privileged_page().
m_piwik::get_site_list | ( | ) |
m_piwik::get_user | ( | $user_login | ) |
string | $user_login |
Definition at line 177 of file m_piwik.php.
References call_privileged_page().
Referenced by user_add().
m_piwik::get_users_access_from_site | ( | $site_id | ) |
Definition at line 144 of file m_piwik.php.
References $cuid, $key, $msg, $user, call_privileged_page(), get_alternc_sites(), and get_alternc_users().
Referenced by get_users_url_infos().
m_piwik::get_users_url_infos | ( | ) |
Definition at line 210 of file m_piwik.php.
References $cuid, $db, $id, $login, $msg, and get_users_access_from_site().
m_piwik::hook_admin_del_member | ( | ) |
hook called when an AlternC account is deleted
Definition at line 64 of file m_piwik.php.
m_piwik::hook_menu | ( | ) |
Definition at line 32 of file m_piwik.php.
m_piwik::hook_quota_get | ( | ) |
Returns the used quota for the $name service for the current user.
$name | string name of the quota |
Definition at line 76 of file m_piwik.php.
m_piwik::m_piwik | ( | ) |
Constructor.
Definition at line 53 of file m_piwik.php.
References variable_get().
m_piwik::site_add | ( | $siteName, | |
$urls, | |||
$ecommerce = FALSE |
|||
) |
Definition at line 373 of file m_piwik.php.
References $cuid, $db, $msg, $userslist, call_privileged_page(), and get_alternc_sites().
m_piwik::site_alias_add | ( | ) |
Definition at line 448 of file m_piwik.php.
m_piwik::site_delete | ( | $site_id | ) |
Definition at line 405 of file m_piwik.php.
References $cuid, $db, $msg, and call_privileged_page().
m_piwik::site_js_tag | ( | $site_id | ) |
Definition at line 361 of file m_piwik.php.
References call_privileged_page().
m_piwik::site_list | ( | ) |
Definition at line 323 of file m_piwik.php.
References $msg, call_privileged_page(), and get_alternc_sites().
m_piwik::site_set_user_right | ( | $site_id, | |
$login, | |||
$right | |||
) |
Definition at line 429 of file m_piwik.php.
References $login, $msg, and call_privileged_page().
m_piwik::url | ( | ) |
m_piwik::user_access | ( | ) |
Definition at line 312 of file m_piwik.php.
m_piwik::user_add | ( | $user_login, | |
$user_mail | |||
) |
Definition at line 96 of file m_piwik.php.
References $cuid, $db, $mem, $msg, $user, call_privileged_page(), clean_user_name(), create_pass(), and get_user().
m_piwik::user_checkremote | ( | $puser_id | ) |
Definition at line 299 of file m_piwik.php.
m_piwik::user_delete | ( | $piwik_user_login | ) |
Delete a piwik user don't delete it locally unless it has been remotely deleted.
Definition at line 260 of file m_piwik.php.
References $cuid, $db, $msg, and call_privileged_page().
m_piwik::user_edit | ( | ) |
Change a user @TODO: code this.
Definition at line 136 of file m_piwik.php.
m_piwik::user_has_sites | ( | ) |
does this user has piwik websites configured in AlternC ?
Definition at line 240 of file m_piwik.php.
m_piwik::user_remoteauth | ( | ) |
Definition at line 306 of file m_piwik.php.
m_piwik::users_list | ( | ) |
Definition at line 283 of file m_piwik.php.
References $cuid, $db, $msg, and call_privileged_page().
m_piwik::$alternc_sites |
Definition at line 30 of file m_piwik.php.
Referenced by get_alternc_sites().
m_piwik::$alternc_users |
Definition at line 29 of file m_piwik.php.
Referenced by get_alternc_users().
m_piwik::$piwik_admin_token |
Definition at line 28 of file m_piwik.php.
Referenced by call_privileged_page().
m_piwik::$piwik_server_uri |
Definition at line 27 of file m_piwik.php.
Referenced by url().