本文整理汇总了PHP中UserConfig::init方法的典型用法代码示例。如果您正苦于以下问题:PHP UserConfig::init方法的具体用法?PHP UserConfig::init怎么用?PHP UserConfig::init使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UserConfig
的用法示例。
在下文中一共展示了UserConfig::init方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: define
define('USERBASE_ACTIVITY_ADDED_UPASS', 1003);
define('USERBASE_ACTIVITY_ADDED_FB', 1004);
define('USERBASE_ACTIVITY_ADDED_GFC', 1005);
define('USERBASE_ACTIVITY_REMOVED_FB', 1006);
define('USERBASE_ACTIVITY_REMOVED_GFC', 1007);
define('USERBASE_ACTIVITY_LOGOUT', 1008);
define('USERBASE_ACTIVITY_REGISTER_UPASS', 1009);
define('USERBASE_ACTIVITY_REGISTER_FB', 1010);
define('USERBASE_ACTIVITY_REGISTER_GFC', 1011);
define('USERBASE_ACTIVITY_UPDATEUSERINFO', 1012);
define('USERBASE_ACTIVITY_UPDATEPASS', 1013);
define('USERBASE_ACTIVITY_RESETPASS', 1014);
define('USERBASE_ACTIVITY_RETURN_DAILY', 1015);
define('USERBASE_ACTIVITY_RETURN_WEEKLY', 1016);
define('USERBASE_ACTIVITY_RETURN_MONTHLY', 1017);
// Array of activities in the system.
// Key must be integer (best if specified using a constant).
// The values are an array with label and "points" value of activity.
UserConfig::$activities = array(USERBASE_ACTIVITY_LOGIN_UPASS => array('Logged in using username and password', 1), USERBASE_ACTIVITY_LOGIN_FB => array('Logged in using Facebook', 1), USERBASE_ACTIVITY_LOGIN_GFC => array('Logged in using Google Friend Connect', 1), USERBASE_ACTIVITY_ADDED_UPASS => array('Added username and password', 1), USERBASE_ACTIVITY_ADDED_FB => array('Added Facebook credential', 1), USERBASE_ACTIVITY_ADDED_GFC => array('Added Google Friend Connect credential', 1), USERBASE_ACTIVITY_REMOVED_FB => array('Removed Facebook Connect', 0), USERBASE_ACTIVITY_REMOVED_GFC => array('Removed Google Friend Connect credential', 0), USERBASE_ACTIVITY_LOGOUT => array('Logged out', 0), USERBASE_ACTIVITY_REGISTER_UPASS => array('Registered using a form', 1), USERBASE_ACTIVITY_REGISTER_FB => array('Registered using Facebook', 1), USERBASE_ACTIVITY_REGISTER_GFC => array('Registered using Google Friend Connect', 1), USERBASE_ACTIVITY_UPDATEUSERINFO => array('Updated user info', 0), USERBASE_ACTIVITY_UPDATEPASS => array('Updated their password', 0), USERBASE_ACTIVITY_RESETPASS => array('Reset forgotten password', 0), USERBASE_ACTIVITY_RETURN_DAILY => array('Returned to the site within a day', 3), USERBASE_ACTIVITY_RETURN_WEEKLY => array('Returned to the site within a week', 2), USERBASE_ACTIVITY_RETURN_MONTHLY => array('Returned to the site within a month', 1));
UserConfig::$cohort_providers[] = new GenerationCohorts(GenerationCohorts::MONTH);
UserConfig::$cohort_providers[] = new GenerationCohorts(GenerationCohorts::WEEK);
UserConfig::$cohort_providers[] = new GenerationCohorts(GenerationCohorts::YEAR);
UserConfig::$cohort_providers[] = new RegMethodCohorts();
}
// Couldn't reuse it, but keeping it here because it might be still populated in user configs
// Use UserConfig::$all_modules array instead of needed
/* !!! DEPRECATED !!! */
public static $modules = array();
}
UserConfig::init();