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);
 }
Beispiel #2
0
 public function __construct($vals = null)
 {
     parent::__construct($vals);
     $this->folder_name = 'facebook';
     $this->addRequiredSetting('facebook_app_id');
     $this->addRequiredSetting('facebook_api_secret');
 }
Beispiel #3
0
 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);
 }
Beispiel #4
0
 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct();
     if ($this->getEnabled()) {
         HookRegistry::register('TemplateManager::display', array($this, 'loadJavaScript'));
     }
 }
 public function __construct($vals = null)
 {
     parent::__construct($vals);
     $this->folder_name = 'twitter';
     $this->addRequiredSetting('oauth_consumer_key');
     $this->addRequiredSetting('oauth_consumer_secret');
 }
Beispiel #6
0
 /**
  * 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');
 }
 public function __construct($vals = null)
 {
     parent::__construct($vals);
     $this->folder_name = 'googleplus';
     $this->addRequiredSetting('google_plus_client_secret');
     $this->addRequiredSetting('google_plus_client_id');
 }
Beispiel #8
0
 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);
 }
 /**
  * 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);
 }
Beispiel #10
0
 public function __construct($vals = null)
 {
     parent::__construct($vals);
     $this->folder_name = 'youtube';
     $this->addRequiredSetting('youtube_client_secret');
     $this->addRequiredSetting('youtube_client_id');
 }
Beispiel #11
0
 /**
  * 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');
 }
Beispiel #12
0
 /**
  * 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');
 }
Beispiel #13
0
 /**
  * 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');
 }
 function __construct($url = null)
 {
     parent::__construct();
     if ($url) {
         $this->baseUrl = $url;
     }
 }
Beispiel #15
0
 /**
  * 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');
 }
Beispiel #16
0
 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;
 }
 function __construct()
 {
     parent::__construct();
     $this->endpoint_url = 'https://api.github.com';
     $this->public_url = 'http://github.com';
     $this->gists_url = 'http://github.com';
 }
 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'));
 }
Beispiel #19
0
 public function __construct()
 {
     parent::__construct();
     $this->theme_assets_path = Config::getThemeAssetsPath();
     $this->theme_path = Config::getCurrentthemePath();
     $this->theme_root = Config::getTemplatesPath();
     $this->site_root = Config::getSiteRoot();
 }
 public function __construct($id)
 {
     parent::__construct($id);
     $this->_addHook('cssfile', 'cssFile', false);
     $this->_addHook('site_admin_option_hook', 'site_admin_option_hook', false);
     $this->_addHook('widget_instance', 'widget_instance', false);
     $this->_addHook('widgets', 'widgets', false);
 }
Beispiel #21
0
 public function __construct()
 {
     parent::__construct();
     //Admin控制器进行登录验证
     if (!$this->session->is_set('user_id') || !$this->session->get('user_id')) {
         $this->adminMsg('请登录以后再操作', url('admin/login'));
     }
 }
 /**
  * Constructor
  *
  * @param Integer $id id of the plugin
  *
  * @return void
  */
 function __construct($id)
 {
     parent::__construct($id);
     if (extension_loaded('oci8')) {
         $this->_addHook('cssfile', 'cssFile', false);
         $this->_addHook('site_help', 'redirectToPlugin', false);
     }
 }
Beispiel #23
0
 public function __construct($vals = null)
 {
     parent::__construct($vals);
     $this->folder_name = 'expandurls';
     $this->logger = Logger::getInstance();
     $this->link_dao = DAOFactory::getDAO('LinkDAO');
     $this->short_link_dao = DAOFactory::getDAO('ShortLinkDAO');
 }
Beispiel #24
0
 public function __construct($id)
 {
     parent::__construct($id);
     $this->setScope(Plugin::SCOPE_PROJECT);
     $this->addHook(Event::SERVICE_ICON);
     $this->addHook(Event::SERVICE_CLASSNAMES);
     $this->addHook(Event::SERVICES_ALLOWED_FOR_PROJECT);
 }
 function __construct($code = null)
 {
     if (!empty($code)) {
         global $config;
         $config['googleanalytics']['code'] = $code;
     }
     parent::__construct();
 }
Beispiel #26
0
 /**
  * Constructor
  * Call parent constructor, passing the language that will be used.
  * @param $language Current phpPgAdmin language. If it was not found in the plugin, English will be used.
  */
 function __construct($language)
 {
     parent::__construct($language);
     if (isset($_REQUEST['plugin']) && $_REQUEST['plugin'] == $this->name && (!isset($_REQUEST['action']) || empty($_REQUEST['action']))) {
         //Set default action in case of empty action
         $_REQUEST['action'] = 'default_action';
     }
 }
 public function __construct($vals = null)
 {
     parent::__construct($vals);
     $this->folder_name = 'twitterrealtime';
     //@TODO: Build in support for making a plugin dependent on another plugin's settings, like Twitter's
     //        $this->addRequiredSetting('oauth_consumer_key');
     //        $this->addRequiredSetting('oauth_consumer_secret');
 }
 /**
  * Constructor
  * @return  void
  */
 protected function __construct()
 {
     $fields = array('tool_enable' => 'boolean', 'api_key' => 'text');
     $smsTypeOptions = $this->getSmsTypeOptions();
     foreach ($smsTypeOptions as $smsTypeOption) {
         $fields[$smsTypeOption] = 'checkbox';
     }
     parent::__construct('0.1', 'Imanol Losada', $fields);
 }
 /**
  * Plugin constructor
  */
 public function __construct($id)
 {
     parent::__construct($id);
     $this->setScope(self::SCOPE_SYSTEM);
     $this->addHook('account_pi_entry');
     $this->addHook('login_presenter');
     $this->addHook('cssfile');
     $this->addHook('javascript_file');
 }
 /**
  * Constructor
  *
  * @param Integer $id id of the plugin
  *
  * @return void
  */
 function __construct($id)
 {
     parent::__construct($id);
     if (extension_loaded('oci8')) {
         $this->_addHook('cssfile', 'cssFile', false);
         $this->_addHook('site_help', 'redirectToPlugin', false);
         $this->_addHook(Event::LAB_FEATURES_DEFINITION_LIST, 'lab_features_definition_list', false);
     }
 }