示例#1
0
 /**
  * Constructor
  *
  * @param mod_profile_VisibilityHandler $handler object handler
  */
 public function __construct(&$handler)
 {
     parent::__construct($handler);
     $this->initVar('fieldid', XOBJ_DTYPE_INT);
     $this->initVar('user_group', XOBJ_DTYPE_INT);
     $this->initVar('profile_group', XOBJ_DTYPE_INT);
 }
示例#2
0
 /**
  * Constructor
  *
  * @param object $handler ProfilePostHandler object
  */
 public function __construct(&$handler)
 {
     parent::__construct($handler);
     $this->quickInitVar('configs_id', XOBJ_DTYPE_INT, true);
     $this->quickInitVar('config_uid', XOBJ_DTYPE_INT, true);
     $this->quickInitVar('pictures', XOBJ_DTYPE_INT, false, false, false, PROFILE_CONFIG_STATUS_MEMBERS);
     $this->quickInitVar('audio', XOBJ_DTYPE_INT, false, false, false, PROFILE_CONFIG_STATUS_MEMBERS);
     $this->quickInitVar('videos', XOBJ_DTYPE_INT, false, false, false, PROFILE_CONFIG_STATUS_MEMBERS);
     $this->quickInitVar('friendship', XOBJ_DTYPE_INT, false, false, false, PROFILE_CONFIG_STATUS_MEMBERS);
     $this->quickInitVar('tribes', XOBJ_DTYPE_INT, false, false, false, PROFILE_CONFIG_STATUS_MEMBERS);
     $this->quickInitVar('profile_usercontributions', XOBJ_DTYPE_INT, false, false, false, PROFILE_CONFIG_STATUS_MEMBERS);
     $this->quickInitVar('suspension', XOBJ_DTYPE_INT, false);
     $this->quickInitVar('backup_password', XOBJ_DTYPE_TXTAREA, false);
     $this->quickInitVar('backup_email', XOBJ_DTYPE_TXTBOX, false);
     $this->quickInitVar('backup_sig', XOBJ_DTYPE_TXTAREA, false);
     $this->quickInitVar('end_suspension', XOBJ_DTYPE_LTIME, false);
     $this->quickInitVar('status', XOBJ_DTYPE_TXTBOX, false);
     $this->hideFieldFromForm(array('configs_id', 'config_uid', 'backup_password', 'backup_email', 'backup_sig', 'status'));
     $this->setControl('config_uid', 'user');
     $this->setControl('suspension', 'yesno');
     $this->setControl('pictures', array('itemHandler' => 'configs', 'method' => 'getConfig_statusArray', 'module' => 'profile'));
     $this->setControl('audio', array('itemHandler' => 'configs', 'method' => 'getConfig_statusArray', 'module' => 'profile'));
     $this->setControl('videos', array('itemHandler' => 'configs', 'method' => 'getConfig_statusArray', 'module' => 'profile'));
     $this->setControl('friendship', array('itemHandler' => 'configs', 'method' => 'getConfig_statusArray', 'module' => 'profile'));
     $this->setControl('tribes', array('itemHandler' => 'configs', 'method' => 'getConfig_statusArray', 'module' => 'profile'));
     $this->setControl('profile_usercontributions', array('itemHandler' => 'configs', 'method' => 'getConfig_statusArray', 'module' => 'profile'));
 }
示例#3
0
 /**
  * Constructor
  *
  * @param mod_profile_FieldHandler $handler object handler
  */
 public function __construct(&$handler)
 {
     parent::__construct($handler);
     $this->quickInitVar('fieldid', XOBJ_DTYPE_INT, true);
     $this->quickInitVar('catid', XOBJ_DTYPE_INT, false);
     $this->quickInitVar('field_type', XOBJ_DTYPE_TXTBOX, false);
     $this->quickInitVar('field_valuetype', XOBJ_DTYPE_TXTBOX, false);
     $this->quickInitVar('field_name', XOBJ_DTYPE_TXTBOX, true);
     $this->quickInitVar('field_title', XOBJ_DTYPE_TXTBOX, true);
     $this->quickInitVar('url', XOBJ_DTYPE_IMAGE, true);
     $this->quickInitVar('field_description', XOBJ_DTYPE_TXTAREA, false);
     $this->quickInitVar('field_required', XOBJ_DTYPE_INT, false);
     $this->quickInitVar('field_maxlength', XOBJ_DTYPE_TXTBOX, false, false, false, 0);
     $this->quickInitVar('field_weight', XOBJ_DTYPE_INT, false, false, false, 0);
     $this->quickInitVar('field_default', XOBJ_DTYPE_TXTAREA, false);
     $this->quickInitVar('field_notnull', XOBJ_DTYPE_INT, false);
     $this->quickInitVar('field_edit', XOBJ_DTYPE_INT, false);
     $this->quickInitVar('field_show', XOBJ_DTYPE_INT, false);
     $this->quickInitVar('field_options', XOBJ_DTYPE_TXTBOX, false);
     $this->quickInitVar('exportable', XOBJ_DTYPE_INT, false);
     $this->quickInitVar('step_id', XOBJ_DTYPE_INT, false);
     $this->quickInitVar('system', XOBJ_DTYPE_INT, false, false, false, 0);
     $this->hideFieldFromForm(array('field_valuetype', 'system'));
     $this->setControl('url', array('name' => 'image', 'nourl' => true));
     $this->setControl('field_required', 'yesno');
     $this->setControl('field_notnull', 'yesno');
     $this->setControl('field_edit', 'yesno');
     $this->setControl('field_show', 'yesno');
     $this->setControl('exportable', 'yesno');
     $this->setControl('system', 'yesno');
     $this->setControl('catid', array('itemHandler' => 'category', 'method' => 'getList', 'module' => 'profile'));
     $this->setControl('field_type', array('itemHandler' => 'field', 'method' => 'getFieldTypeArray', 'module' => 'profile'));
     $this->setControl('step_id', array('itemHandler' => 'regstep', 'method' => 'getListForFields', 'module' => 'profile'));
 }
示例#4
0
 /**
  * Constructor
  *
  * @param mod_profile_CategoryHandler $handler object handler
  */
 public function __construct(&$handler)
 {
     parent::__construct($handler);
     $this->quickInitVar('catid', XOBJ_DTYPE_INT, true);
     $this->quickInitVar('cat_title', XOBJ_DTYPE_TXTBOX, true);
     $this->quickInitVar('cat_description', XOBJ_DTYPE_TXTAREA, false);
     $this->quickInitVar('cat_weight', XOBJ_DTYPE_TXTBOX, false, false, false, 0);
 }
示例#5
0
 /**
  * Constructor
  *
  * @param mod_profile_VisitorsHandler $handler object handler
  */
 public function __construct(&$handler)
 {
     parent::__construct($handler);
     $this->quickInitVar('visitors_id', XOBJ_DTYPE_INT, true);
     $this->quickInitVar('uid_owner', XOBJ_DTYPE_INT, true);
     $this->quickInitVar('uid_visitor', XOBJ_DTYPE_INT, true);
     $this->quickInitVar('visit_time', XOBJ_DTYPE_LTIME, false);
 }
示例#6
0
 public function __construct(&$handler)
 {
     parent::__construct($handler);
     $this->quickInitVar('page_id', XOBJ_DTYPE_INT);
     $this->quickInitVar('page_moduleid', XOBJ_DTYPE_INT, true);
     $this->quickInitVar('page_title', XOBJ_DTYPE_TXTBOX, true);
     $this->quickInitVar('page_url', XOBJ_DTYPE_TXTBOX, true);
     $this->quickInitVar('page_status', XOBJ_DTYPE_INT, true);
 }
示例#7
0
 /**
  * Constructor
  * 
  * @param object $handler
  */
 function __construct(&$handler)
 {
     parent::__construct($handler);
     $this->quickInitVar('mimetypeid', XOBJ_DTYPE_INT, TRUE);
     $this->quickInitVar('extension', XOBJ_DTYPE_TXTBOX, TRUE, _CO_ICMS_MIMETYPE_EXTENSION, _CO_ICMS_MIMETYPE_EXTENSION_DSC);
     $this->quickInitVar('types', XOBJ_DTYPE_TXTAREA, TRUE, _CO_ICMS_MIMETYPE_TYPES, _CO_ICMS_MIMETYPE_TYPES_DSC);
     $this->quickInitVar('name', XOBJ_DTYPE_TXTBOX, TRUE, _CO_ICMS_MIMETYPE_NAME, _CO_ICMS_MIMETYPE_NAME_DSC);
     $this->quickInitVar('dirname', XOBJ_DTYPE_SIMPLE_ARRAY, TRUE, _CO_ICMS_MIMETYPE_DIRNAME);
     $this->setControl('dirname', array('name' => 'selectmulti', 'itemHandler' => 'icms_module', 'method' => 'getActive'));
 }
示例#8
0
 /**
  * Constructor
  *
  * @param mod_profile_RegstepHandler $handler handler object
  */
 public function __construct(&$handler)
 {
     parent::__construct($handler);
     $this->quickInitVar('step_id', XOBJ_DTYPE_INT, true);
     $this->quickInitVar('step_name', XOBJ_DTYPE_TXTBOX, true);
     $this->quickInitVar('step_intro', XOBJ_DTYPE_TXTAREA, false);
     $this->quickInitVar('step_order', XOBJ_DTYPE_TXTBOX, false);
     $this->quickInitVar('step_save', XOBJ_DTYPE_TXTBOX, false);
     $this->setControl('step_save', 'yesno');
 }
示例#9
0
 /**
  * Constructor
  *
  * @param icms_view_block_position_Handler $handler
  */
 public function __construct(&$handler)
 {
     parent::__construct($handler);
     $this->quickInitVar('id', XOBJ_DTYPE_INT);
     $this->quickInitVar('pname', XOBJ_DTYPE_TXTBOX, true);
     $this->quickInitVar('title', XOBJ_DTYPE_TXTBOX, true);
     $this->quickInitVar('description', XOBJ_DTYPE_TXTAREA);
     $this->quickInitVar('block_default', XOBJ_DTYPE_INT);
     $this->quickInitVar('block_type', XOBJ_DTYPE_TXTBOX);
 }
示例#10
0
 /**
  * Create a new instance of the userrank object
  * 
  * @param object $handler
  */
 public function __construct(&$handler)
 {
     parent::__construct($handler);
     $this->quickInitVar("rank_id", XOBJ_DTYPE_INT, TRUE);
     $this->quickInitVar("rank_title", XOBJ_DTYPE_TXTBOX, TRUE, _CO_ICMS_USERRANK_RANK_TITLE, _CO_ICMS_USERRANK_RANK_TITLE_DSC);
     $this->quickInitVar("rank_min", XOBJ_DTYPE_INT, TRUE, _CO_ICMS_USERRANK_RANK_MIN, _CO_ICMS_USERRANK_RANK_MIN_DSC);
     $this->quickInitVar("rank_max", XOBJ_DTYPE_INT, TRUE, _CO_ICMS_USERRANK_RANK_MAX, _CO_ICMS_USERRANK_RANK_MAX_DSC);
     $this->quickInitVar("rank_special", XOBJ_DTYPE_INT, TRUE, _CO_ICMS_USERRANK_RANK_SPECIAL, _CO_ICMS_USERRANK_RANK_SPECIAL_DSC);
     $this->quickInitVar("rank_image", XOBJ_DTYPE_TXTBOX, TRUE, _CO_ICMS_USERRANK_RANK_IMAGE, _CO_ICMS_USERRANK_RANK_IMAGE_DSC);
     $this->setControl("rank_special", "yesno");
     $this->setControl("rank_image", "image");
 }
 /**
  * Constructor
  *
  * @param mod_billboard_Slide $handler Object handler
  */
 public function __construct(&$handler)
 {
     parent::__construct($handler);
     $this->quickInitVar('slideshow_id', XOBJ_DTYPE_INT, TRUE);
     $this->quickInitVar("slide_id", XOBJ_DTYPE_INT, TRUE);
     $this->quickInitVar("image", XOBJ_DTYPE_IMAGE, TRUE);
     $this->quickInitVar("title", XOBJ_DTYPE_TXTBOX, FALSE);
     $this->quickInitVar("url", XOBJ_DTYPE_TXTBOX, FALSE);
     $this->quickInitVar("caption", XOBJ_DTYPE_TXTAREA, FALSE);
     $this->quickInitVar("slide_order", XOBJ_DTYPE_INT, FALSE);
     $this->setControl("image", "image");
 }
示例#12
0
 /**
  * Constructor
  *
  * @param mod_profile_AudioHandler $handler object handler
  */
 public function __construct(&$handler)
 {
     parent::__construct($handler);
     $this->quickInitVar('audio_id', XOBJ_DTYPE_INT, true);
     $this->quickInitVar('author', XOBJ_DTYPE_TXTBOX, true);
     $this->quickInitVar('title', XOBJ_DTYPE_TXTBOX, true);
     $this->quickInitVar('url', XOBJ_DTYPE_TXTBOX, true);
     $this->quickInitVar('uid_owner', XOBJ_DTYPE_INT, true);
     $this->quickInitVar('creation_time', XOBJ_DTYPE_LTIME, false);
     $this->setControl('uid_owner', 'user');
     $this->setControl('url', 'upload');
 }
示例#13
0
 /**
  * Constructor
  *
  * @param mod_profile_FriendshipHandler $handler object handler
  */
 public function __construct(&$handler)
 {
     parent::__construct($handler);
     $this->quickInitVar('friendship_id', XOBJ_DTYPE_INT, true);
     $this->quickInitVar('friend1_uid', XOBJ_DTYPE_INT, true);
     $this->quickInitVar('friend2_uid', XOBJ_DTYPE_INT, true);
     $this->quickInitVar('creation_time', XOBJ_DTYPE_LTIME, false);
     $this->quickInitVar('status', XOBJ_DTYPE_INT, true, false, false, PROFILE_FRIENDSHIP_STATUS_PENDING);
     $this->setControl('friend1_uid', 'user');
     $this->setControl('status', array('itemHandler' => 'friendship', 'method' => 'getFriendship_statusArray', 'module' => 'profile'));
     $this->hideFieldFromForm('friend2_uid');
     $this->hideFieldFromForm('creation_time');
 }
示例#14
0
 /**
  * Constructor
  *
  * @param mod_profile_TribeuserHandler $handler object handler
  */
 public function __construct(&$handler)
 {
     parent::__construct($handler);
     $this->quickInitVar('tribeuser_id', XOBJ_DTYPE_INT, true);
     $this->quickInitVar('tribe_id', XOBJ_DTYPE_INT, true);
     $this->quickInitVar('user_id', XOBJ_DTYPE_INT, true);
     $this->quickInitVar('approved', XOBJ_DTYPE_INT, false, false, false, 1);
     $this->quickInitVar('accepted', XOBJ_DTYPE_INT, false, false, false, 1);
     $this->setControl('tribe_id', array('itemHandler' => 'Tribes', 'method' => 'getAllTribes', 'module' => 'profile'));
     $this->setControl('user_id', 'user');
     $this->setControl('approved', 'yesno');
     $this->setControl('accepted', 'yesno');
 }
示例#15
0
 /**
  * Constructor
  *
  * @param ProfilePictureHandler $handler handler object
  */
 public function __construct(&$handler)
 {
     parent::__construct($handler);
     $this->quickInitVar('pictures_id', XOBJ_DTYPE_INT, true);
     $this->quickInitVar('title', XOBJ_DTYPE_TXTBOX, true);
     $this->quickInitVar('creation_time', XOBJ_DTYPE_LTIME, false);
     $this->quickInitVar('uid_owner', XOBJ_DTYPE_INT, true);
     $this->quickInitVar('url', XOBJ_DTYPE_IMAGE, true);
     $this->quickInitVar('private', XOBJ_DTYPE_TXTBOX, false);
     $this->initCommonVar('counter', false);
     $this->setControl('uid_owner', 'user');
     $this->setControl('url', array('name' => 'image', 'nourl' => true));
     $this->setControl('private', 'yesno');
     $this->hideFieldFromForm('creation_time');
 }
示例#16
0
 /**
  * Constructor for the ratings object
  * @param object $handler
  */
 public function __construct(&$handler)
 {
     parent::__construct($handler);
     $this->quickInitVar('ratingid', XOBJ_DTYPE_INT, TRUE);
     $this->quickInitVar('dirname', XOBJ_DTYPE_TXTBOX, TRUE, _CO_ICMS_RATING_DIRNAME);
     $this->quickInitVar('item', XOBJ_DTYPE_TXTBOX, TRUE, _CO_ICMS_RATING_ITEM);
     $this->quickInitVar('itemid', XOBJ_DTYPE_INT, TRUE, _CO_ICMS_RATING_ITEMID);
     $this->quickInitVar('uid', XOBJ_DTYPE_INT, TRUE, _CO_ICMS_RATING_UID);
     $this->quickInitVar('date', XOBJ_DTYPE_LTIME, TRUE, _CO_ICMS_RATING_DATE);
     $this->quickInitVar('rate', XOBJ_DTYPE_INT, TRUE, _CO_ICMS_RATING_RATE);
     $this->initNonPersistableVar('name', XOBJ_DTYPE_TXTBOX, 'user', _CO_ICMS_RATING_NAME);
     $this->setControl('dirname', array('method' => 'getModuleList', 'onSelect' => 'submit'));
     $this->setControl('item', array('object' => &$this, 'method' => 'getItemList'));
     $this->setControl('uid', 'user');
     $this->setControl('rate', array('method' => 'getRateList'));
 }
示例#17
0
 /**
  * Constructor
  * @param object $handler
  */
 public function __construct(&$handler)
 {
     parent::__construct($handler);
     $this->quickInitVar('customtagid', XOBJ_DTYPE_INT, TRUE);
     $this->quickInitVar('name', XOBJ_DTYPE_TXTBOX, TRUE, _CO_ICMS_CUSTOMTAG_NAME, _CO_ICMS_CUSTOMTAG_NAME_DSC);
     $this->quickInitVar('description', XOBJ_DTYPE_TXTAREA, FALSE, _CO_ICMS_CUSTOMTAG_DESCRIPTION, _CO_ICMS_CUSTOMTAG_DESCRIPTION_DSC);
     $this->quickInitVar('customtag_content', XOBJ_DTYPE_TXTAREA, TRUE, _CO_ICMS_CUSTOMTAG_CONTENT, _CO_ICMS_CUSTOMTAG_CONTENT_DSC);
     $this->quickInitVar('language', XOBJ_DTYPE_TXTBOX, TRUE, _CO_ICMS_CUSTOMTAG_LANGUAGE, _CO_ICMS_CUSTOMTAG_LANGUAGE_DSC);
     $this->quickInitVar('customtag_type', XOBJ_DTYPE_INT, TRUE, _CO_ICMS_CUSTOMTAG_TYPE, _CO_ICMS_CUSTOMTAG_TYPE_DSC, ICMS_CUSTOMTAG_TYPE_XCODES);
     $this->initNonPersistableVar('dohtml', XOBJ_DTYPE_INT, 'class', 'dohtml', '', TRUE);
     $this->initNonPersistableVar('doimage', XOBJ_DTYPE_INT, 'class', 'doimage', '', TRUE);
     $this->initNonPersistableVar('doxcode', XOBJ_DTYPE_INT, 'class', 'doxcode', '', TRUE);
     $this->initNonPersistableVar('dosmiley', XOBJ_DTYPE_INT, 'class', 'dosmiley', '', TRUE);
     $this->setControl('customtag_content', array('name' => 'textarea', 'form_editor' => 'textarea', 'form_rows' => 25));
     $this->setControl('language', array('name' => 'language', 'all' => TRUE));
     $this->setControl('customtag_type', array('itemHandler' => 'customtag', 'method' => 'getCustomtag_types', 'module' => 'system', "onSelect" => "submit"));
 }
示例#18
0
 /**
  * Constructor
  *
  * @param mod_profile_VideosHandler $handler object handler
  */
 public function __construct(&$handler)
 {
     parent::__construct($handler);
     $this->quickInitVar('videos_id', XOBJ_DTYPE_INT, true);
     $this->quickInitVar('uid_owner', XOBJ_DTYPE_INT, true);
     $this->quickInitVar('video_title', XOBJ_DTYPE_TXTBOX, true);
     $this->quickInitVar('youtube_code', XOBJ_DTYPE_TXTBOX, true);
     $this->quickInitVar('video_desc', XOBJ_DTYPE_TXTAREA, true);
     $this->quickInitVar('creation_time', XOBJ_DTYPE_LTIME, false);
     $this->initCommonVar('dohtml', false, true);
     $this->initCommonVar('dobr', false, true);
     $this->initCommonVar('doimage', false, true);
     $this->initCommonVar('dosmiley', false, true);
     $this->initCommonVar('doxcode', false, true);
     $this->setControl('uid_owner', 'user');
     $this->setControl('video_desc', 'dhtmltextarea');
 }
示例#19
0
 /**
  * Constructor
  *
  * @param mod_profile_TribetopicHandler $handler object handler
  */
 public function __construct(&$handler)
 {
     icms_ipf_Object::__construct($handler);
     $this->quickInitVar('topic_id', XOBJ_DTYPE_INT, true);
     $this->quickInitVar('tribes_id', XOBJ_DTYPE_INT, true);
     $this->quickInitVar('poster_uid', XOBJ_DTYPE_INT, true);
     $this->quickInitVar('post_id', XOBJ_DTYPE_INT, true);
     $this->quickInitVar('title', XOBJ_DTYPE_TXTBOX, true);
     $this->quickInitVar('closed', XOBJ_DTYPE_INT, true, false, false, 0);
     $this->quickInitVar('replies', XOBJ_DTYPE_INT, false);
     $this->quickInitVar('views', XOBJ_DTYPE_INT, false);
     $this->quickInitVar('last_post_id', XOBJ_DTYPE_INT, true);
     $this->quickInitVar('last_post_time', XOBJ_DTYPE_LTIME, false);
     $this->setControl('poster_uid', 'user');
     $this->setControl('closed', 'yesno');
     $this->hideFieldFromForm(array('tribes_id', 'post_uid', 'post_id', 'replies', 'views', 'last_post_id', 'last_post_time'));
     $this->initiateSEO();
 }
示例#20
0
 public function __construct(&$handler)
 {
     global $contentConfig;
     icms_ipf_Object::__construct($handler);
     $this->quickInitVar('content_id', XOBJ_DTYPE_INT, true);
     $this->quickInitVar('content_pid', XOBJ_DTYPE_INT, false);
     $this->quickInitVar('content_uid', XOBJ_DTYPE_INT, true, false, false, 1);
     $this->quickInitVar('content_title', XOBJ_DTYPE_TXTBOX, true);
     $this->quickInitVar('content_body', XOBJ_DTYPE_TXTAREA);
     $this->quickInitVar('content_css', XOBJ_DTYPE_TXTAREA);
     $this->quickInitVar('content_tags', XOBJ_DTYPE_TXTAREA);
     $this->quickInitVar('content_visibility', XOBJ_DTYPE_INT, true, false, false, CONTENT_CONTENT_VISIBLE_MENUSUBS);
     $this->quickInitVar('content_published_date', XOBJ_DTYPE_LTIME, false);
     $this->quickInitVar('content_updated_date', XOBJ_DTYPE_LTIME);
     $this->quickInitVar('content_weight', XOBJ_DTYPE_INT, true, false, false, 0);
     $this->quickInitVar('content_status', XOBJ_DTYPE_INT, true, false, false, CONTENT_CONTENT_STATUS_PUBLISHED);
     $this->quickInitVar('content_makesymlink', XOBJ_DTYPE_INT, true, false, false, 0);
     $this->quickInitVar('content_showsubs', XOBJ_DTYPE_INT, false, false, false, $contentConfig['show_relateds']);
     $this->quickInitVar('content_cancomment', XOBJ_DTYPE_INT, false, false, false, true);
     $this->quickInitVar('content_comments', XOBJ_DTYPE_INT);
     $this->quickInitVar('content_notification_sent', XOBJ_DTYPE_INT);
     $this->hideFieldFromForm('content_comments');
     $this->hideFieldFromForm('content_notification_sent');
     $this->hideFieldFromSingleView('content_comments');
     $this->hideFieldFromSingleView('content_notification_sent');
     $this->initCommonVar('counter', false);
     $this->initCommonVar('dohtml', false, true);
     $this->initCommonVar('dobr', false, true);
     $this->initCommonVar('doimage', false, true);
     $this->initCommonVar('dosmiley', false, true);
     $this->initCommonVar('doxcode', false, true);
     $this->initNonPersistableVar('content_subs', XOBJ_DTYPE_INT);
     $this->setControl('content_body', 'dhtmltextarea');
     $this->setControl('content_uid', 'user');
     $this->setControl('content_status', array('itemHandler' => 'content', 'method' => 'getContent_statusArray', 'module' => 'content'));
     $this->setControl('content_visibility', array('itemHandler' => 'content', 'method' => 'getContent_visibleArray', 'module' => 'content'));
     $this->setControl('content_pid', array('itemHandler' => 'content', 'method' => 'getContentList', 'module' => 'content'));
     $this->setControl('categories', array('name' => 'categories', 'module' => 'imtagging'));
     $this->setControl('content_makesymlink', 'yesno');
     $this->setControl('content_showsubs', 'yesno');
     $this->setControl('content_cancomment', 'yesno');
     parent::initiateSEO();
 }
示例#21
0
 /**
  * Constructor
  * 
  * @param object $handler
  */
 public function __construct(&$handler)
 {
     parent::__construct($handler);
     $this->quickInitVar('sat_id', XOBJ_DTYPE_INT, FALSE);
     $this->quickInitVar('sat_lastruntime', XOBJ_DTYPE_INT, FALSE, _CO_ICMS_AUTOTASKS_LASTRUNTIME, NULL, 0);
     $this->quickInitVar('sat_name', XOBJ_DTYPE_TXTBOX, TRUE, _CO_ICMS_AUTOTASKS_NAME, _CO_ICMS_AUTOTASKS_NAME_DSC);
     $this->quickInitVar('sat_code', XOBJ_DTYPE_SOURCE, TRUE, _CO_ICMS_AUTOTASKS_CODE, _CO_ICMS_AUTOTASKS_CODE_DSC);
     $this->quickInitVar('sat_repeat', XOBJ_DTYPE_INT, TRUE, _CO_ICMS_AUTOTASKS_REPEAT, _CO_ICMS_AUTOTASKS_REPEAT_DSC, 0);
     $this->quickInitVar('sat_interval', XOBJ_DTYPE_INT, TRUE, _CO_ICMS_AUTOTASKS_INTERVAL, _CO_ICMS_AUTOTASKS_INTERVAL_DSC, 24 * 60);
     $this->quickInitVar('sat_onfinish', XOBJ_DTYPE_INT, TRUE, _CO_ICMS_AUTOTASKS_ONFINISH, _CO_ICMS_AUTOTASKS_ONFINISH_DSC, 0);
     $this->quickInitVar('sat_enabled', XOBJ_DTYPE_INT, TRUE, _CO_ICMS_AUTOTASKS_ENABLED, _CO_ICMS_AUTOTASKS_ENABLED_DSC, 1);
     $this->quickInitVar('sat_type', XOBJ_DTYPE_TXTBOX, TRUE, _CO_ICMS_AUTOTASKS_TYPE, NULL, ':custom');
     $this->quickInitVar('sat_addon_id', XOBJ_DTYPE_INT, FALSE);
     $this->setControl('sat_name', 'text');
     $this->setControl('sat_onfinish', 'yesno');
     $this->setControl('sat_enabled', 'yesno');
     $this->doHideFieldFromForm('sat_addon_id');
     $this->doHideFieldFromForm('sat_type');
     $this->doHideFieldFromForm('sat_lastruntime');
 }
示例#22
0
 /**
  * Constructor
  * 
  * @param object $handler
  */
 public function __construct(&$handler)
 {
     parent::__construct($handler);
     $this->quickInitVar('adsenseid', XOBJ_DTYPE_INT, TRUE);
     $this->quickInitVar('description', XOBJ_DTYPE_TXTAREA, TRUE, _CO_ICMS_ADSENSE_DESCRIPTION, _CO_ICMS_ADSENSE_DESCRIPTION_DSC);
     $this->quickInitVar('client_id', XOBJ_DTYPE_TXTBOX, TRUE, _CO_ICMS_ADSENSE_CLIENT_ID, _CO_ICMS_ADSENSE_CLIENT_ID_DSC);
     $this->quickInitVar('slot', XOBJ_DTYPE_TXTBOX, TRUE, _CO_ICMS_ADSENSE_SLOT, _CO_ICMS_ADSENSE_SLOT_DSC);
     $this->quickInitVar('tag', XOBJ_DTYPE_TXTBOX, FALSE, _CO_ICMS_ADSENSE_TAG, _CO_ICMS_ADSENSE_TAG_DSC);
     $this->quickInitVar('format', XOBJ_DTYPE_TXTBOX, TRUE, _CO_ICMS_ADSENSE_FORMAT, _CO_ICMS_ADSENSE_FORMAT_DSC);
     $this->quickInitVar('color_border', XOBJ_DTYPE_TXTBOX, TRUE, _CO_ICMS_ADSENSE_COLOR_BORDER, _CO_ICMS_ADSENSE_COLOR_BORDER_DSC);
     $this->quickInitVar('color_background', XOBJ_DTYPE_TXTBOX, TRUE, _CO_ICMS_ADSENSE_COLOR_BACKGROUND, _CO_ICMS_ADSENSE_COLOR_BORDER_DSC);
     $this->quickInitVar('color_link', XOBJ_DTYPE_TXTBOX, TRUE, _CO_ICMS_ADSENSE_COLOR_LINK, _CO_ICMS_ADSENSE_COLOR_LINK_DSC);
     $this->quickInitVar('color_url', XOBJ_DTYPE_TXTBOX, TRUE, _CO_ICMS_ADSENSE_COLOR_URL, _CO_ICMS_ADSENSE_COLOR_URL_DSC);
     $this->quickInitVar('color_text', XOBJ_DTYPE_TXTBOX, TRUE, _CO_ICMS_ADSENSE_COLOR_TEXT, _CO_ICMS_ADSENSE_COLOR_TEXT_DSC);
     $this->quickInitVar('style', XOBJ_DTYPE_TXTAREA, FALSE, _CO_ICMS_ADSENSE_STYLE, _CO_ICMS_ADSENSE_STYLE_DSC);
     $this->setControl('format', array('method' => 'getFormats'));
     $this->setControl('color_border', 'color');
     $this->setControl('color_background', 'color');
     $this->setControl('color_link', 'color');
     $this->setControl('color_url', 'color');
     $this->setControl('color_text', 'color');
 }
示例#23
0
 /**
  * Constructor
  *
  * @param mod_profile_TribepostHandler $handler mod_profile_TribepostHandler object
  */
 public function __construct(&$handler)
 {
     icms_ipf_Object::__construct($handler);
     $this->quickInitVar('post_id', XOBJ_DTYPE_INT, true);
     $this->quickInitVar('topic_id', XOBJ_DTYPE_INT, true);
     $this->quickInitVar('tribes_id', XOBJ_DTYPE_INT, true);
     $this->quickInitVar('poster_uid', XOBJ_DTYPE_INT, true);
     $this->quickInitVar('title', XOBJ_DTYPE_TXTBOX, true);
     $this->quickInitVar('body', XOBJ_DTYPE_TXTAREA, true);
     $this->quickInitVar('attachsig', XOBJ_DTYPE_INT, true, false, false, 1);
     $this->quickInitVar('post_time', XOBJ_DTYPE_LTIME, false);
     $this->initCommonVar('dohtml', false, true);
     $this->initCommonVar('dobr', false, true);
     $this->initCommonVar('doimage', false, true);
     $this->initCommonVar('dosmiley', false, true);
     $this->initCommonVar('doxcode', false, true);
     $this->setControl('poster_uid', 'user');
     $this->setControl('body', 'dhtmltextarea');
     $this->setControl('attachsig', 'yesno');
     $this->hideFieldFromForm(array('topic_id', 'tribes_id', 'poster_uid', 'post_time'));
     $this->initiateSEO();
 }
示例#24
0
 /**
  * Constructor for the block object
  * @param $handler
  */
 public function __construct(&$handler)
 {
     parent::__construct($handler);
     $this->quickInitVar('name', XOBJ_DTYPE_TXTBOX);
     $this->quickInitVar('bid', XOBJ_DTYPE_INT, TRUE);
     $this->quickInitVar('mid', XOBJ_DTYPE_INT, TRUE);
     $this->quickInitVar('func_num', XOBJ_DTYPE_INT);
     $this->quickInitVar('title', XOBJ_DTYPE_TXTBOX);
     $this->quickInitVar('content', XOBJ_DTYPE_TXTAREA);
     $this->quickInitVar('side', XOBJ_DTYPE_INT, TRUE);
     $this->quickInitVar('weight', XOBJ_DTYPE_INT, TRUE, FALSE, FALSE, 0);
     $this->quickInitVar('visible', XOBJ_DTYPE_INT, TRUE);
     /**
      * @var string $block_type Holds the type of block
      * 	S - System block
      * 	M - block from a Module (other than system)
      * 	C - Custom block (legacy type 'E')
      * 	K - block cloned from another block (legacy type 'D')
      */
     $this->quickInitVar('block_type', XOBJ_DTYPE_TXTBOX);
     /**
      * @var	string	$c_type	The type of content in the block
      * 	H - HTML
      * 	P - PHP
      * 	S - Auto Format (smilies and HTML enabled)
      *  T - Auto Format (smilies and HTML disabled)
      */
     $this->quickInitVar('c_type', XOBJ_DTYPE_TXTBOX, TRUE, FALSE, FALSE, "S");
     $this->quickInitVar('isactive', XOBJ_DTYPE_INT);
     $this->quickInitVar('dirname', XOBJ_DTYPE_TXTBOX);
     $this->quickInitVar('func_file', XOBJ_DTYPE_TXTBOX);
     $this->quickInitVar('show_func', XOBJ_DTYPE_TXTBOX);
     $this->quickInitVar('edit_func', XOBJ_DTYPE_TXTBOX);
     $this->quickInitVar('template', XOBJ_DTYPE_TXTBOX);
     $this->quickInitVar('bcachetime', XOBJ_DTYPE_INT);
     $this->quickInitVar('last_modified', XOBJ_DTYPE_INT);
     $this->quickInitVar('options', XOBJ_DTYPE_TXTBOX);
 }
 public function IcmsPersistableObject(&$handler)
 {
     parent::__construct($handler);
     $this->_deprecated = icms_core_Debug::setDeprecated('icms_ipf_Object', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));
 }
示例#26
0
 public function __construct(&$handler)
 {
     parent::__construct($handler);
 }