当前位置: 首页>>代码示例>>PHP>>正文


PHP Plugin::__construct方法代码示例

本文整理汇总了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);
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:26,代码来源:phpwikiPlugin.class.php

示例2: __construct

 public function __construct($vals = null)
 {
     parent::__construct($vals);
     $this->folder_name = 'facebook';
     $this->addRequiredSetting('facebook_app_id');
     $this->addRequiredSetting('facebook_api_secret');
 }
开发者ID:dgw,项目名称:ThinkUp,代码行数:7,代码来源:class.FacebookPlugin.php

示例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);
 }
开发者ID:nterray,项目名称:tuleap,代码行数:60,代码来源:ldapPlugin.class.php

示例4: array

 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct();
     if ($this->getEnabled()) {
         HookRegistry::register('TemplateManager::display', array($this, 'loadJavaScript'));
     }
 }
开发者ID:pkp,项目名称:ojs,代码行数:10,代码来源:CitationPlugin.inc.php

示例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');
 }
开发者ID:rverbrugge,项目名称:dif,代码行数:32,代码来源:Poll.php

示例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);
 }
开发者ID:nterray,项目名称:tuleap,代码行数:29,代码来源:trackerPlugin.class.php

示例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);
 }
开发者ID:rinodung,项目名称:tuleap,代码行数:14,代码来源:archivedeleteditemsPlugin.class.php

示例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');
 }
开发者ID:rverbrugge,项目名称:dif,代码行数:34,代码来源:LoginMailer.php

示例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');
 }
开发者ID:rverbrugge,项目名称:dif,代码行数:34,代码来源:Banner.php

示例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');
 }
开发者ID:rverbrugge,项目名称:dif,代码行数:35,代码来源:Links.php

示例11:

 function __construct($url = null)
 {
     parent::__construct();
     if ($url) {
         $this->baseUrl = $url;
     }
 }
开发者ID:microcosmx,项目名称:experiments,代码行数:7,代码来源:BlogspamNetPlugin.php

示例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');
 }
开发者ID:rverbrugge,项目名称:dif,代码行数:40,代码来源:Reservation.php

示例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;
 }
开发者ID:nterray,项目名称:tuleap,代码行数:25,代码来源:IMPlugin.class.php

示例14:

 function __construct()
 {
     parent::__construct();
     $this->endpoint_url = 'https://api.github.com';
     $this->public_url = 'http://github.com';
     $this->gists_url = 'http://github.com';
 }
开发者ID:AntonyChurch,项目名称:Statamic-GitHub-Plugin,代码行数:7,代码来源:pi.github.php

示例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'));
 }
开发者ID:KRCM13,项目名称:chamilo-lms,代码行数:7,代码来源:buy_course_plugin.class.php


注:本文中的Plugin::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。