本文整理汇总了PHP中Plugin::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Plugin::__construct方法的具体用法?PHP Plugin::__construct怎么用?PHP Plugin::__construct使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Plugin
的用法示例。
在下文中一共展示了Plugin::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct($id)
{
parent::__construct($id);
$this->setScope(self::SCOPE_PROJECT);
$this->name = 'phpwiki';
$this->text = 'PHPWiki';
$this->addHook(Event::LAYOUT_SEARCH_ENTRY);
$this->addHook(Event::SEARCH_TYPE);
$this->addHook(Event::SEARCH_TYPES_PRESENTERS);
$this->addHook('backend_system_purge_files', 'purgeFiles');
$this->addHook(Event::SERVICE_ICON);
$this->addHook(Event::SERVICES_ALLOWED_FOR_PROJECT);
$this->addHook(Event::SERVICE_PUBLIC_AREAS);
$this->addHook(Event::GET_SYSTEM_EVENT_CLASS);
$this->addHook(Event::SYSTEM_EVENT_GET_TYPES_FOR_DEFAULT_QUEUE);
$this->addHook('site_admin_option_hook');
if ($this->isDocmanPluginActivated()) {
$this->addHook(PLUGIN_DOCMAN_EVENT_GET_PHPWIKI_PAGE, 'getWikiPage');
}
$this->addHook('phpwiki_redirection');
$this->addHook(Event::SERVICES_TRUNCATED_EMAILS);
$this->addHook(Event::REST_PROJECT_GET_PHPWIKI);
$this->addHook(Event::REST_PROJECT_OPTIONS_PHPWIKI);
$this->addHook(EVENT::REST_RESOURCES);
$this->addHook(EVENT::REST_PROJECT_RESOURCES);
}
示例2: __construct
public function __construct($vals = null)
{
parent::__construct($vals);
$this->folder_name = 'facebook';
$this->addRequiredSetting('facebook_app_id');
$this->addRequiredSetting('facebook_api_secret');
}
示例3:
function __construct($id)
{
parent::__construct($id);
// Layout
$this->_addHook('display_newaccount', 'forbidIfLdapAuth', false);
// Search
$this->_addHook('search_type_entry', 'ldapSearchEntry', false);
$this->_addHook('search_type', 'ldapSearch', false);
// Authentication
$this->_addHook('session_before_login', 'authenticate', false);
$this->_addHook('session_after_login', 'allowCodendiLogin', false);
// Login
$this->_addHook('display_lostpw_createaccount', 'forbidIfLdapAuth', false);
$this->_addHook('login_after_form', 'loginAfterForm', false);
$this->_addHook('account_redirect_after_login', 'account_redirect_after_login', false);
// User finder
$this->_addHook('user_manager_find_user', 'user_manager_find_user', false);
$this->_addHook('user_manager_get_user_by_identifier', 'user_manager_get_user_by_identifier', false);
// User Home
$this->_addHook('user_home_pi_entry', 'personalInformationEntry', false);
$this->_addHook('user_home_pi_tail', 'personalInformationTail', false);
// User account
$this->_addHook('account_pi_entry', 'accountPiEntry', false);
$this->_addHook('before_change_email-complete', 'cancelChangeAndUserLdap', false);
$this->_addHook('before_change_email-confirm', 'cancelChangeAndUserLdap', false);
$this->_addHook('before_change_email', 'cancelChangeAndUserLdap', false);
$this->_addHook('before_change_pw', 'cancelChangeAndUserLdap', false);
$this->_addHook('before_change_realname', 'cancelChangeAndUserLdap', false);
$this->_addHook('before_lostpw-confirm', 'cancelChange', false);
$this->_addHook('before_lostpw', 'cancelChange', false);
$this->_addHook('display_change_password', 'forbidIfLdapAuthAndUserLdap', false);
$this->_addHook('display_change_email', 'forbidIfLdapAuthAndUserLdap', false);
// Comment if want to allow real name change in LDAP mode
$this->_addHook('display_change_realname', 'forbidIfLdapAuthAndUserLdap', false);
// Site Admin
$this->_addHook('before_admin_change_pw', 'warnNoPwChange', false);
$this->_addHook('usergroup_update_form', 'addLdapInput', false);
$this->_addHook('usergroup_update', 'updateLdapID', false);
// Project admin
$this->_addHook('ugroup_table_title', 'ugroup_table_title', false);
$this->_addHook('ugroup_table_row', 'ugroup_table_row', false);
$this->_addHook('project_admin_add_user_form', 'project_admin_add_user_form', false);
$this->_addHook(Event::UGROUP_UPDATE_USERS_ALLOWED, 'ugroup_update_users_allowed', false);
// Svn intro
$this->_addHook('svn_intro', 'svn_intro', false);
$this->_addHook('svn_check_access_username', 'svn_check_access_username', false);
$this->_addHook('before_register', 'redirectToLogin', false);
// Search as you type user
$this->_addHook('ajax_search_user', 'ajax_search_user', false);
// Project creation
$this->_addHook('register_project_creation', 'register_project_creation', false);
// Backend SVN
$this->_addHook('backend_factory_get_svn', 'backend_factory_get_svn', false);
$this->_addHook(Event::SVN_APACHE_AUTH, 'svn_apache_auth', false);
// Daily codendi job
$this->_addHook('codendi_daily_start', 'codendi_daily_start', false);
// SystemEvent
$this->_addHook(Event::SYSTEM_EVENT_GET_TYPES, 'system_event_get_types', false);
$this->_addHook(Event::GET_SYSTEM_EVENT_CLASS, 'get_system_event_class', false);
}
示例4: array
/**
* Constructor
*/
function __construct()
{
parent::__construct();
if ($this->getEnabled()) {
HookRegistry::register('TemplateManager::display', array($this, 'loadJavaScript'));
}
}
示例5: __construct
/**
* Constructor
*
* Reads project's and default .ini file, sets project handler's
* and initializes paths.
* @param location config file
*/
public function __construct()
{
parent::__construct();
$this->configFile = strtolower(__CLASS__ . ".ini");
$this->template = array();
$this->templateFile = "poll.tpl";
$this->basePath = realpath(dirname(__FILE__) . "/../") . "/";
$this->sqlParser->setSelect('select');
$this->sqlParser->setTable('poll_settings', 'a');
$this->sqlParser->addField(new SqlField('a', 'poll_id', 'id', 'id', SqlParser::getTypeSelect() | SqlParser::PKEY, SqlField::TYPE_INTEGER));
$this->sqlParser->addField(new SqlField('a', 'poll_display', 'display', 'Weergave', SqlParser::getTypeSelect() | SqlParser::getTypeModify(), SqlField::TYPE_INTEGER, true));
$this->sqlParser->addField(new SqlField('a', 'poll_rows', 'rows', 'Aantal items', SqlParser::getTypeSelect() | SqlParser::getTypeModify(), SqlField::TYPE_INTEGER));
$this->sqlParser->addField(new SqlField('a', 'poll_usr_id', 'usr_id', 'Gebruiker', SqlParser::getTypeSelect() | SqlParser::getTypeModify(), SqlField::TYPE_INTEGER, true));
$this->sqlParser->addField(new SqlField('a', 'poll_own_id', 'own_id', 'Eigenaar', SqlParser::getTypeSelect() | SqlParser::MOD_INSERT, SqlField::TYPE_INTEGER, true));
$this->sqlParser->addField(new SqlField('a', 'poll_create', 'createdate', 'Creatie', SqlParser::getTypeSelect() | SqlParser::MOD_INSERT, SqlField::TYPE_DATE, true));
$this->sqlParser->addField(new SqlField('a', 'poll_ts', 'ts', 'Gewijzigd', SqlParser::getTypeSelect(), SqlField::TYPE_DATE));
//add new view types
$view = ViewManager::getInstance();
$view->insert(self::VIEW_DETAIL, 'Details');
$view->insert(self::VIEW_ITEM_OVERVIEW, 'Items overview');
$view->insert(self::VIEW_ITEM_NEW, 'New item');
$view->insert(self::VIEW_ITEM_EDIT, 'Edit items');
$view->insert(self::VIEW_ITEM_DELETE, 'Items delete');
$view->insert(self::VIEW_CONFIG, 'Configuration');
}
示例6: __construct
public function __construct($id)
{
parent::__construct($id);
$this->setScope(self::SCOPE_PROJECT);
$this->_addHook('cssfile', 'cssFile', false);
$this->_addHook('javascript_file', 'javascript_file', false);
$this->_addHook(Event::GET_AVAILABLE_REFERENCE_NATURE, 'get_available_reference_natures', false);
$this->_addHook(Event::GET_ARTIFACT_REFERENCE_GROUP_ID, 'get_artifact_reference_group_id', false);
$this->_addHook(Event::BUILD_REFERENCE, 'build_reference', false);
$this->_addHook('ajax_reference_tooltip', 'ajax_reference_tooltip', false);
$this->_addHook(Event::SERVICE_CLASSNAMES, 'service_classnames', false);
$this->_addHook(Event::COMBINED_SCRIPTS, 'combined_scripts', false);
$this->_addHook(Event::JAVASCRIPT, 'javascript', false);
$this->_addHook(Event::TOGGLE, 'toggle', false);
$this->_addHook(Event::SERVICE_PUBLIC_AREAS, 'service_public_areas', false);
$this->_addHook('permission_get_name', 'permission_get_name', false);
$this->_addHook('permission_get_object_type', 'permission_get_object_type', false);
$this->_addHook('permission_get_object_name', 'permission_get_object_name', false);
$this->_addHook('permission_get_object_fullname', 'permission_get_object_fullname', false);
$this->_addHook('permission_user_allowed_to_change', 'permission_user_allowed_to_change', false);
$this->_addHook('permissions_for_ugroup', 'permissions_for_ugroup', false);
$this->_addHook('url_verification_instance', 'url_verification_instance', false);
$this->_addHook('widget_instance', 'widget_instance', false);
$this->_addHook('widgets', 'widgets', false);
$this->_addHook('project_is_deleted', 'project_is_deleted', false);
$this->_addHook('register_project_creation', 'register_project_creation', false);
$this->_addHook('codendi_daily_start', 'codendi_daily_start', false);
$this->_addHook('fill_project_history_sub_events', 'fillProjectHistorySubEvents', false);
}
示例7: __construct
/**
* Constructor of the class
*
* @param Integer $id Id of the plugin
*
* @return Void
*/
public function __construct($id)
{
parent::__construct($id);
$this->setScope(Plugin::SCOPE_SYSTEM);
$this->archiveScript = $GLOBALS['codendi_bin_prefix'] . "/archive-deleted-items.pl";
$this->_addHook('archive_deleted_item', 'archive_deleted_item', false);
}
示例8: __construct
/**
* Constructor
*
* Reads project's and default .ini file, sets project handler's
* and initializes paths.
* @param location config file
*/
public function __construct()
{
parent::__construct();
$this->template = array();
$this->templateFile = "loginmailer.tpl";
$this->templateEmail = "loginmailer_email.tpl";
//$this->configFile = strtolower(__CLASS__.".ini");
$this->basePath = realpath(dirname(__FILE__) . "/../") . "/";
$this->sqlParser->setSelect('select');
$this->sqlParser->setTable('login_mail', 'a');
$this->sqlParser->addField(new SqlField('a', 'login_tree_id', 'tree_id', 'Node', SqlParser::getTypeSelect() | SqlParser::getTypeModify() | SqlParser::PKEY, SqlField::TYPE_INTEGER, true));
$this->sqlParser->addField(new SqlField('a', 'login_tag', 'tag', 'Tag', SqlParser::getTypeSelect() | SqlParser::getTypeModify() | SqlParser::PKEY, SqlField::TYPE_STRING, true));
$this->sqlParser->addField(new SqlField('a', 'login_ref_tree_id', 'ref_tree_id', 'Reference Node', SqlParser::getTypeSelect() | SqlParser::getTypeModify(), SqlField::TYPE_INTEGER));
$this->sqlParser->addField(new SqlField('a', 'login_fin_tree_id', 'fin_tree_id', 'Reference Node success', SqlParser::getTypeSelect() | SqlParser::getTypeModify(), SqlField::TYPE_INTEGER));
$this->sqlParser->addField(new SqlField('a', 'login_intro', 'intro', 'Introductie', SqlParser::getTypeSelect() | SqlParser::getTypeModify(), SqlField::TYPE_STRING));
$this->sqlParser->addField(new SqlField('a', 'login_subject', 'subject', 'Email subject', SqlParser::getTypeSelect() | SqlParser::getTypeModify(), SqlField::TYPE_STRING, true));
$this->sqlParser->addField(new SqlField('a', 'login_content', 'content', 'Email content', SqlParser::getTypeSelect() | SqlParser::getTypeModify(), SqlField::TYPE_STRING));
$this->sqlParser->addField(new SqlField('a', 'login_cap_submit', 'submit', 'Submit button', SqlParser::getTypeSelect() | SqlParser::getTypeModify(), SqlField::TYPE_STRING, true));
$this->sqlParser->addField(new SqlField('a', 'login_cap_fin_submit', 'fin_submit', 'Submit button finish', SqlParser::getTypeSelect() | SqlParser::getTypeModify(), SqlField::TYPE_STRING, true));
$this->sqlParser->addField(new SqlField('a', 'login_usr_id', 'usr_id', 'Gebruiker', SqlParser::getTypeSelect() | SqlParser::getTypeModify(), SqlField::TYPE_INTEGER, true));
$this->sqlParser->addField(new SqlField('a', 'login_own_id', 'own_id', 'Eigenaar', SqlParser::getTypeSelect() | SqlParser::MOD_INSERT, SqlField::TYPE_INTEGER, true));
$this->sqlParser->addField(new SqlField('a', 'login_create', 'createdate', 'Creatie', SqlParser::getTypeSelect() | SqlParser::MOD_INSERT, SqlField::TYPE_DATE, true));
$this->sqlParser->addField(new SqlField('a', 'login_ts', 'ts', 'Gewijzigd', SqlParser::getTypeSelect(), SqlField::TYPE_DATE));
//add new view types
$view = ViewManager::getInstance();
$view->insert(self::VIEW_ACTIVATE, 'Activate');
}
示例9: __construct
/**
* Constructor
*
* Reads project's and default .ini file, sets project handler's
* and initializes paths.
* @param location config file
*/
public function __construct()
{
parent::__construct();
$this->configFile = strtolower(__CLASS__ . ".ini");
$this->template = array();
$this->templateFile = "banner.tpl";
$this->basePath = realpath(dirname(__FILE__) . "/../") . "/";
$this->sqlParser->setSelect('select');
$this->sqlParser->setTable('banner_settings', 'a');
$this->sqlParser->addField(new SqlField('a', 'bnr_tree_id', 'tree_id', 'Node', SqlParser::getTypeSelect() | SqlParser::getTypeModify() | SqlParser::PKEY, SqlField::TYPE_INTEGER, true));
$this->sqlParser->addField(new SqlField('a', 'bnr_tag', 'tag', 'Tag', SqlParser::getTypeSelect() | SqlParser::getTypeModify() | SqlParser::PKEY, SqlField::TYPE_STRING, true));
$this->sqlParser->addField(new SqlField('a', 'bnr_display', 'display', 'Weergave', SqlParser::getTypeSelect() | SqlParser::getTypeModify(), SqlField::TYPE_INTEGER, true));
$this->sqlParser->addField(new SqlField('a', 'bnr_display_order', 'display_order', 'Volgorde', SqlParser::getTypeSelect() | SqlParser::getTypeModify(), SqlField::TYPE_INTEGER, true));
$this->sqlParser->addField(new SqlField('a', 'bnr_url', 'url', 'Weergave url', SqlParser::getTypeSelect() | SqlParser::getTypeModify(), SqlField::TYPE_BOOLEAN));
$this->sqlParser->addField(new SqlField('a', 'bnr_transition_speed', 'transition_speed', 'Wissel snelheid', SqlParser::getTypeSelect() | SqlParser::getTypeModify(), SqlField::TYPE_INTEGER));
$this->sqlParser->addField(new SqlField('a', 'bnr_img_width', 'image_width', 'Breedte', SqlParser::getTypeSelect() | SqlParser::getTypeModify(), SqlField::TYPE_INTEGER));
$this->sqlParser->addField(new SqlField('a', 'bnr_img_height', 'image_height', 'Hoogte', SqlParser::getTypeSelect() | SqlParser::getTypeModify(), SqlField::TYPE_INTEGER));
$this->sqlParser->addField(new SqlField('a', 'bnr_img_max_width', 'image_max_width', 'Maximale breedte', SqlParser::getTypeSelect() | SqlParser::getTypeModify(), SqlField::TYPE_INTEGER));
$this->sqlParser->addField(new SqlField('a', 'bnr_image', 'image', 'Layer image', SqlParser::getTypeSelect(), SqlField::TYPE_STRING));
$this->sqlParser->addField(new SqlField('a', 'bnr_usr_id', 'usr_id', 'Gebruiker', SqlParser::getTypeSelect() | SqlParser::getTypeModify(), SqlField::TYPE_INTEGER, true));
$this->sqlParser->addField(new SqlField('a', 'bnr_own_id', 'own_id', 'Eigenaar', SqlParser::getTypeSelect() | SqlParser::MOD_INSERT, SqlField::TYPE_INTEGER, true));
$this->sqlParser->addField(new SqlField('a', 'bnr_create', 'createdate', 'Creatie', SqlParser::getTypeSelect() | SqlParser::MOD_INSERT, SqlField::TYPE_DATE, true));
$this->sqlParser->addField(new SqlField('a', 'bnr_ts', 'ts', 'Gewijzigd', SqlParser::getTypeSelect(), SqlField::TYPE_DATE));
//add new view types
$view = ViewManager::getInstance();
$view->insert(self::VIEW_SETTINGS, 'Instellingen');
}
示例10: __construct
/**
* Constructor
*
* Reads project's and default .ini file, sets project handler's
* and initializes paths.
* @param location config file
*/
public function __construct()
{
parent::__construct();
$this->configFile = strtolower(__CLASS__ . ".ini");
$this->template = array();
$this->templateFile = "links.tpl";
$this->basePath = realpath(dirname(__FILE__) . "/../") . "/";
$this->sqlParser->setSelect('select');
$this->sqlParser->setTable('links_settings', 'a');
$this->sqlParser->addField(new SqlField('a', 'lnk_id', 'id', 'id', SqlParser::getTypeSelect() | SqlParser::PKEY, SqlField::TYPE_INTEGER));
$this->sqlParser->addField(new SqlField('a', 'lnk_display', 'display', 'Display style', SqlParser::getTypeSelect() | SqlParser::getTypeModify(), SqlField::TYPE_INTEGER));
$this->sqlParser->addField(new SqlField('a', 'lnk_image_width', 'image_width', 'Breedte afbeelding', SqlParser::getTypeSelect() | SqlParser::getTypeModify(), SqlField::TYPE_INTEGER));
$this->sqlParser->addField(new SqlField('a', 'lnk_image_height', 'image_height', 'Hoogte afbeelding', SqlParser::getTypeSelect() | SqlParser::getTypeModify(), SqlField::TYPE_INTEGER));
$this->sqlParser->addField(new SqlField('a', 'lnk_image_max_width', 'image_max_width', 'maximale breedte afbeelding', SqlParser::getTypeSelect() | SqlParser::getTypeModify(), SqlField::TYPE_INTEGER));
$this->sqlParser->addField(new SqlField('a', 'lnk_rows', 'rows', 'Aantal items', SqlParser::getTypeSelect() | SqlParser::getTypeModify(), SqlField::TYPE_INTEGER));
$this->sqlParser->addField(new SqlField('a', 'lnk_usr_id', 'usr_id', 'Gebruiker', SqlParser::getTypeSelect() | SqlParser::getTypeModify(), SqlField::TYPE_INTEGER, true));
$this->sqlParser->addField(new SqlField('a', 'lnk_own_id', 'own_id', 'Eigenaar', SqlParser::getTypeSelect() | SqlParser::MOD_INSERT, SqlField::TYPE_INTEGER, true));
$this->sqlParser->addField(new SqlField('a', 'lnk_create', 'createdate', 'Creatie', SqlParser::getTypeSelect() | SqlParser::MOD_INSERT, SqlField::TYPE_DATE, true));
$this->sqlParser->addField(new SqlField('a', 'lnk_ts', 'ts', 'Gewijzigd', SqlParser::getTypeSelect(), SqlField::TYPE_DATE));
//add new view types
$view = ViewManager::getInstance();
$view->insert(self::VIEW_DETAIL, 'Details');
$view->insert(self::VIEW_IMPORT, 'Import images');
$view->insert(self::VIEW_RESIZE, 'Resize images');
$view->insert(self::VIEW_CONFIG, 'Configuration');
$view->insert(self::VIEW_MV_PREC, 'Move to previous element');
$view->insert(self::VIEW_MV_FOL, 'Move to next element');
}
示例11:
function __construct($url = null)
{
parent::__construct();
if ($url) {
$this->baseUrl = $url;
}
}
示例12: __construct
/**
* Constructor
*
* Reads project's and default .ini file, sets project handler's
* and initializes paths.
* @param location config file
*/
public function __construct()
{
parent::__construct();
$this->configFile = strtolower(__CLASS__ . ".ini");
$this->template = array();
$this->templateFile = "reservation.tpl";
$this->templateTimeFile = "reservationtime.tpl";
$this->templateReservationFile = "reservationlist.tpl";
$this->basePath = realpath(dirname(__FILE__) . "/../") . "/";
$this->sqlParser->setSelect('select');
$this->sqlParser->setTable('reservation_settings', 'a');
$this->sqlParser->addField(new SqlField('a', 'set_id', 'id', 'id', SqlParser::getTypeSelect() | SqlParser::PKEY, SqlField::TYPE_INTEGER));
$this->sqlParser->addField(new SqlField('a', 'set_display', 'display', 'Display', SqlParser::getTypeSelect() | SqlParser::getTypeModify(), SqlField::TYPE_INTEGER, true));
$this->sqlParser->addField(new SqlField('a', 'set_max_subscribe', 'max_subscribe', 'Maximun subscriptions per person', SqlParser::getTypeSelect() | SqlParser::getTypeModify(), SqlField::TYPE_INTEGER, true));
$this->sqlParser->addField(new SqlField('a', 'set_slots', 'slots', 'Maximum subscriptions per time', SqlParser::getTypeSelect() | SqlParser::getTypeModify(), SqlField::TYPE_INTEGER, true));
$this->sqlParser->addField(new SqlField('a', 'set_schedule', 'schedule', 'Schedule', SqlParser::getTypeSelect() | SqlParser::getTypeModify(), SqlField::TYPE_STRING, true));
$this->sqlParser->addField(new SqlField('a', 'set_usr_id', 'usr_id', 'Gebruiker', SqlParser::getTypeSelect() | SqlParser::getTypeModify(), SqlField::TYPE_INTEGER, true));
$this->sqlParser->addField(new SqlField('a', 'set_own_id', 'own_id', 'Eigenaar', SqlParser::getTypeSelect() | SqlParser::MOD_INSERT, SqlField::TYPE_INTEGER, true));
$this->sqlParser->addField(new SqlField('a', 'set_create', 'createdate', 'Creatie', SqlParser::getTypeSelect() | SqlParser::MOD_INSERT, SqlField::TYPE_DATE, true));
$this->sqlParser->addField(new SqlField('a', 'set_ts', 'ts', 'Gewijzigd', SqlParser::getTypeSelect(), SqlField::TYPE_DATE));
//add new view types
$view = ViewManager::getInstance();
$view->insert(self::VIEW_DETAIL, 'Details');
$view->insert(self::VIEW_CONFIG, 'Configuration');
$view->insert(self::VIEW_BLOCK_PERIOD_OVERVIEW, 'Block period overview');
$view->insert(self::VIEW_BLOCK_PERIOD_NEW, 'Block period new');
$view->insert(self::VIEW_BLOCK_PERIOD_EDIT, 'Block period edit');
$view->insert(self::VIEW_BLOCK_PERIOD_DELETE, 'Block period delete');
$view->insert(self::VIEW_USER_GROUP_OVERVIEW, 'User group overview');
$view->insert(self::VIEW_USER_GROUP_NEW, 'User group new');
$view->insert(self::VIEW_USER_GROUP_EDIT, 'User group edit');
$view->insert(self::VIEW_USER_GROUP_DELETE, 'User group delete');
}
示例13:
function __construct($id, $debug = IM_DEBUG_OFF)
{
parent::__construct($id);
$this->_addHook('javascript_file', 'jsFile', false);
$this->_addHook('cssfile', 'cssFile', false);
$this->_addHook('approve_pending_project', 'projectIsApproved', false);
$this->_addHook('project_is_suspended_or_pending', 'projectIsSuspendedOrPending', false);
$this->_addHook('project_is_deleted', 'projectIsDeleted', false);
$this->_addHook('project_is_active', 'projectIsActive', false);
$this->_addHook('project_admin_add_user', 'projectAddUser', false);
$this->_addHook('project_admin_remove_user', 'projectRemoveUser', false);
$this->_addHook('site_admin_option_hook', 'siteAdminHooks', false);
$this->_addHook('site_admin_external_tool_hook', 'site_admin_external_tool_hook', false);
$this->_addHook('site_admin_external_tool_selection_hook', 'site_admin_external_tool_selection_hook', false);
$this->_addHook('account_pi_entry', 'im_process_display_user_jabber_id_in_account', false);
$this->_addHook('user_home_pi_entry', 'im_process_display_user_jabber_id', false);
$this->_addHook('get_user_display_name', 'im_process_display_presence', false);
$this->_addHook('widget_instance', 'myPageBox', false);
$this->_addHook('widgets', 'widgets', false);
$this->_addHook('user_preferences_appearance', 'user_preferences_appearance', false);
$this->_addHook('update_user_preferences_appearance', 'update_user_preferences_appearance', false);
$this->_addHook('project_export_entry', 'provide_exportable_items', false);
$this->_addHook('get_available_reference_natures', 'getAvailableReferenceNatures', false);
$this->debug = $debug;
}
示例14:
function __construct()
{
parent::__construct();
$this->endpoint_url = 'https://api.github.com';
$this->public_url = 'http://github.com';
$this->gists_url = 'http://github.com';
}
示例15: __construct
protected function __construct()
{
parent::__construct('1.0', 'Jose Angel Ruiz - NoSoloRed (original author),
Francis Gonzales and Yannick Warnier - BeezNest (integration),
Alex Aragón - BeezNest (Design icons and css styles),
Imanol Losada - BeezNest (introduction of sessions purchase)', array('show_main_menu_tab' => 'boolean', 'include_sessions' => 'boolean', 'paypal_enable' => 'boolean', 'transfer_enable' => 'boolean', 'unregistered_users_enable' => 'boolean'));
}