Ejemplo n.º 1
0
 /**
  * Constructor
  */
 public function __construct($aModule)
 {
     parent::__construct($aModule);
     $this->_aPrefixes = array('style' => 'bx-ntfs', 'language' => '_bx_ntfs', 'option' => 'bx_notifications_');
     $this->_aHandlerDescriptor = array('module_name' => '', 'module_method' => '', 'module_class' => '');
     $this->_sHandlersMethod = 'get_notifications_data';
     $this->_aJsClass = array('main' => 'BxNtfsMain', 'view' => 'BxNtfsView');
     $this->_aJsObjects = array('view' => 'oBxNtfsView');
     $sHtmlPrefix = str_replace('_', '-', $this->_sName);
     $this->_aHtmlIds = array('view' => array('block' => $sHtmlPrefix, 'events' => $sHtmlPrefix . '-events', 'event' => $sHtmlPrefix . '-event-'));
 }
Ejemplo n.º 2
0
 /**
  * Constructor
  */
 public function __construct($aModule)
 {
     parent::__construct($aModule);
     $this->CNF = array('OBJECT_COMMENTS' => $this->_sName, 'T' => array('txt_sample_single' => '_bx_timeline_txt_sample', 'txt_sample_comment_single' => '_bx_timeline_txt_sample_comment_single'));
     $this->_aPrefixes = array('style' => 'bx-tl', 'language' => '_bx_timeline', 'option' => 'bx_timeline_', 'common_post' => 'timeline_common_');
     $this->_aObjects = array('alert' => $this->_sName, 'comment' => $this->CNF['OBJECT_COMMENTS'], 'vote' => $this->_sName, 'storage' => $this->_sName . '_photos', 'transcoder_preview' => $this->_sName . '_photos_preview', 'transcoder_view' => $this->_sName . '_photos_view', 'conn_subscriptions' => 'sys_profiles_subscriptions', 'menu_item_manage' => $this->_sName . '_menu_item_manage', 'menu_item_actions' => $this->_sName . '_menu_item_actions');
     $this->_aHandlerDescriptor = array('module_name' => '', 'module_method' => '', 'module_class' => '', 'groupable' => '', 'group_by' => '');
     $this->_sHandlersMethod = 'get_timeline_data';
     $this->_aImageUploaders = array($this->_sName . '_simple');
     $this->_bJsMode = false;
     $this->_aJsClass = array('main' => 'BxTimelineMain', 'view' => 'BxTimelineView', 'post' => 'BxTimelinePost', 'share' => 'BxTimelineShare');
     $this->_aJsObjects = array('view' => 'oTimelineView', 'post' => 'oTimelinePost', 'share' => 'oTimelineShare');
     $sHtmlPrefix = str_replace('_', '-', $this->_sName);
     $this->_aHtmlIds = array('view' => array('main' => $sHtmlPrefix, 'item' => $sHtmlPrefix . '-item-', 'menu_popup' => $sHtmlPrefix . '-menu-popup-', 'photo_popup' => $sHtmlPrefix . '-photo-popup'), 'post' => array('attach_link_popup' => $sHtmlPrefix . '-attach-link-popup', 'attach_link_form_field' => $sHtmlPrefix . '-attach-link-form_field', 'attach_link_item' => $sHtmlPrefix . '-attach-link-item-'), 'share' => array('main' => $sHtmlPrefix . '-share-', 'counter' => $sHtmlPrefix . '-share-counter-', 'by_popup' => $sHtmlPrefix . '-share-by-'));
     $this->_aShareDefaults = array('show_do_share_as_button' => false, 'show_do_share_as_button_small' => false, 'show_do_share_icon' => true, 'show_do_share_label' => false, 'show_counter' => true);
     $this->_iTimelineVisibilityThreshold = 0;
     $this->_aPregPatterns = array("meta_title" => "/<title>(.*)<\\/title>/", "meta_description" => "/<meta[\\s]+[^>]*?name[\\s]?=[\\s\"\\']+description[\\s\"\\']+content[\\s]?=[\\s\"\\']+(.*?)[\"\\']+.*?>/", "url" => "/((https?|ftp|news):\\/\\/)?([a-z]([a-z0-9\\-]*\\.)+(aero|arpa|biz|com|coop|edu|gov|info|int|jobs|mil|museum|name|nato|net|org|pro|travel|[a-z]{2})|(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))(\\/[a-z0-9_\\-\\.~]+)*(\\/([a-z0-9_\\-\\.]*)(\\?[a-z0-9+_\\-\\.%=&amp;]*)?)?(#[a-z][a-z0-9_]*)?/");
 }
Ejemplo n.º 3
0
 /**
  * Constructor
  */
 public function __construct($aModule)
 {
     parent::__construct($aModule);
     $this->CNF = array('FIELD_ID' => 'id', 'FIELD_LOCATION_PREFIX' => 'location', 'OBJECT_COMMENTS' => $this->_sName, 'T' => array('txt_sample_single' => '_bx_timeline_txt_sample', 'txt_sample_single_ext' => '_bx_timeline_txt_sample_ext', 'txt_sample_comment_single' => '_bx_timeline_txt_sample_comment_single'));
     $this->_aPrefixes = array('style' => 'bx-tl', 'language' => '_bx_timeline', 'option' => 'bx_timeline_', 'common_post' => 'timeline_common_');
     $this->_aObjects = array('alert' => $this->_sName, 'comment' => $this->CNF['OBJECT_COMMENTS'], 'vote' => $this->_sName, 'metatags' => $this->_sName, 'storage_photos' => $this->_sName . '_photos', 'storage_videos' => $this->_sName . '_videos', 'transcoder_photos_preview' => $this->_sName . '_photos_preview', 'transcoder_photos_view' => $this->_sName . '_photos_view', 'transcoder_videos_poster' => $this->_sName . '_videos_poster', 'transcoder_videos_mp4' => $this->_sName . '_videos_mp4', 'transcoder_videos_webm' => $this->_sName . '_videos_webm', 'conn_subscriptions' => 'sys_profiles_subscriptions', 'menu_item_manage' => $this->_sName . '_menu_item_manage', 'menu_item_actions' => $this->_sName . '_menu_item_actions', 'menu_post_attachments' => $this->_sName . '_menu_post_attachments', 'form_post' => $this->_sName . '_post', 'form_attach_link' => $this->_sName . '_attach_link', 'form_display_post_add' => $this->_sName . '_post_add', 'form_display_attach_link_add' => $this->_sName . '_attach_link_add');
     $this->_aHandlerDescriptor = array('module_name' => '', 'module_method' => '', 'module_class' => '', 'groupable' => '', 'group_by' => '');
     $this->_sHandlersMethod = 'get_timeline_data';
     $this->_aPhotoUploaders = array($this->_sName . '_simple_photo');
     $this->_aVideoUploaders = array($this->_sName . '_simple_video');
     $this->_bJsMode = false;
     $this->_aJsClass = array('main' => 'BxTimelineMain', 'view' => 'BxTimelineView', 'post' => 'BxTimelinePost', 'share' => 'BxTimelineShare');
     $this->_aJsObjects = array('view' => 'oTimelineView', 'post' => 'oTimelinePost', 'share' => 'oTimelineShare');
     $sHtmlPrefix = str_replace('_', '-', $this->_sName);
     $this->_aHtmlIds = array('view' => array('main' => $sHtmlPrefix, 'item' => $sHtmlPrefix . '-item-', 'menu_popup' => $sHtmlPrefix . '-menu-popup-', 'photo_popup' => $sHtmlPrefix . '-photo-popup'), 'post' => array('attach_link_popup' => $sHtmlPrefix . '-attach-link-popup', 'attach_link_form_field' => $sHtmlPrefix . '-attach-link-form_field', 'attach_link_item' => $sHtmlPrefix . '-attach-link-item-'), 'share' => array('main' => $sHtmlPrefix . '-share-', 'counter' => $sHtmlPrefix . '-share-counter-', 'by_popup' => $sHtmlPrefix . '-share-by-'));
     $this->_aShareDefaults = array('show_do_share_as_button' => false, 'show_do_share_as_button_small' => false, 'show_do_share_icon' => true, 'show_do_share_label' => false, 'show_counter' => true);
     $this->_iTimelineVisibilityThreshold = 0;
     $this->_aPregPatterns = array("meta_title" => "/<title>(.*)<\\/title>/", "meta_description" => "/<meta[\\s]+[^>]*?name[\\s]?=[\\s\"\\']+description[\\s\"\\']+content[\\s]?=[\\s\"\\']+(.*?)[\"\\']+.*?>/");
 }