示例#1
0
 /**
  * Init
  *
  * @return	void
  * @access	public
  */
 function init()
 {
     $this->defineAttribute('cssClass', false, '', COMPONENT_TYPE_STRING);
     $this->defineAttribute('text', false, '', COMPONENT_TYPE_STRING);
     $this->defineAttribute('allowGroups', false, '', COMPONENT_TYPE_STRING);
     parent::init();
 }
示例#2
0
 /**
  * Init
  *
  * @return	void
  * @access	public
  */
 function init()
 {
     // define the custom attributes
     $this->defineAttribute('label', false, __T('GLZ_PRINT_PDF'), COMPONENT_TYPE_STRING);
     // call the superclass for validate the attributes
     parent::init();
 }
示例#3
0
 /**
  * Init
  *
  * @return	void
  * @access	public
  */
 function init()
 {
     // define the custom attributes
     $this->defineAttribute('attributeToSelect', false, 'id', COMPONENT_TYPE_STRING);
     $this->defineAttribute('selectLink', false, false, COMPONENT_TYPE_BOOLEAN);
     $this->defineAttribute('cssClass', false, NULL, COMPONENT_TYPE_STRING);
     $this->defineAttribute('nestedCssClass', false, false, COMPONENT_TYPE_BOOLEAN);
     $this->defineAttribute('depth', false, '+1', COMPONENT_TYPE_STRING);
     $this->defineAttribute('flat', false, false, COMPONENT_TYPE_BOOLEAN);
     $this->defineAttribute('forceLink', false, false, COMPONENT_TYPE_BOOLEAN);
     $this->defineAttribute('showPath', false, false, COMPONENT_TYPE_BOOLEAN);
     $this->defineAttribute('maxPathDepth', false, NULL, COMPONENT_TYPE_INTEGER);
     $this->defineAttribute('selectParent', false, false, COMPONENT_TYPE_BOOLEAN);
     $this->defineAttribute('startFrom', true, '*', COMPONENT_TYPE_STRING);
     $this->defineAttribute('startFromDepth', false, NULL, COMPONENT_TYPE_INTEGER);
     $this->defineAttribute('showOnlyChilds', false, false, COMPONENT_TYPE_BOOLEAN);
     $this->defineAttribute('drawAllChilds', false, false, COMPONENT_TYPE_BOOLEAN);
     $this->defineAttribute('type', false, NULL, COMPONENT_TYPE_STRING);
     $this->defineAttribute('title', false, '', COMPONENT_TYPE_STRING);
     $this->defineAttribute('headingTitle', false, NULL, COMPONENT_TYPE_STRING);
     $this->defineAttribute('headingCssClass', false, NULL, COMPONENT_TYPE_STRING);
     $this->defineAttribute('wrapTag', false, NULL, COMPONENT_TYPE_STRING);
     $this->defineAttribute('wrapTagCssClass', false, NULL, COMPONENT_TYPE_STRING);
     $this->defineAttribute('omitId', false, false, COMPONENT_TYPE_BOOLEAN);
     $this->defineAttribute('openFirstLevel', false, false, COMPONENT_TYPE_BOOLEAN);
     $this->defineAttribute('cssCurrent', false, 'current', COMPONENT_TYPE_STRING);
     // call the superclass for validate the attributes
     parent::init();
     $this->addEventListener(GLZ_EVT_SITEMAP_UPDATE, $this);
 }
示例#4
0
 function process()
 {
     parent::process();
     $this->_content['id'] = $this->getId();
     $this->_content['cssClass'] = $this->getAttribute('cssClass');
     $this->_content['title'] = $this->getAttributeString('title');
     $this->_content['label'] = $this->getAttributeString('label');
     $this->_content['buttonLabel'] = $this->getAttributeString('buttonLabel');
     $this->_content['value'] = __Request::get('search', '');
     if (!$this->_content['buttonLabel']) {
         $this->_content['buttonLabel'] = $this->_content['label'];
     }
     $searchPageId = $this->getAttribute('searchPageId');
     if (!is_int($searchPageId)) {
         $siteMap = $this->_application->getSiteMap();
         $menu = $siteMap->getMenuByPageType($searchPageId);
         if ($menu && $menu->isVisible) {
             $this->_content['__url__'] = org_glizy_helpers_Link::makeURL('link', array('pageId' => $menu->id));
         } else {
             $this->setAttribute('visible', false);
         }
     } else {
         $this->_content['__url__'] = org_glizy_helpers_Link::makeURL('link', array('pageId' => $searchPageId));
     }
 }
示例#5
0
 function init()
 {
     // define the custom attributes
     $this->defineAttribute('label', true, '', COMPONENT_TYPE_STRING);
     $this->defineAttribute('routeUrl', false, '', COMPONENT_TYPE_STRING);
     parent::init();
 }
示例#6
0
 function init()
 {
     // define the custom attributes
     $this->defineAttribute('value', false, true, COMPONENT_TYPE_BOOLEAN);
     $this->defineAttribute('connect', false, 0, COMPONENT_TYPE_INTEGER);
     // call the superclass for validate the attributes
     parent::init();
 }
示例#7
0
 function init()
 {
     // define the custom attributes
     $this->defineAttribute('cssClass', false, 'odd,even', COMPONENT_TYPE_STRING);
     $this->defineAttribute('label', false, '', COMPONENT_TYPE_STRING);
     // call the superclass for validate the attributes
     parent::init();
 }
示例#8
0
 /**
  * Init
  *
  * @return	void
  * @access	public
  */
 function init()
 {
     // define the custom attributes
     $this->defineAttribute('name', true, '', COMPONENT_TYPE_STRING);
     $this->defineAttribute('value', true, '', COMPONENT_TYPE_STRING);
     // call the superclass for validate the attributes
     parent::init();
 }
示例#9
0
 function init()
 {
     // define the custom attributes
     $this->defineAttribute('entityTypeId', false, null, COMPONENT_TYPE_INTEGER);
     $this->defineAttribute('documentId', false, null, COMPONENT_TYPE_INTEGER);
     $this->defineAttribute('addGraphJsLibs.js', false, true, COMPONENT_TYPE_BOOLEAN);
     parent::init();
 }
示例#10
0
 function init()
 {
     parent::init();
     /* Togliere elemento dall' array per disabilitare nel back-end*/
     $this->buttonListBase = array("Twitter", "Linkedin", "Facebook", "Google-plus", "E-mail", "Facebook-like");
     $this->dimList = array("xs" => __T('extra small'), "sm" => __T('small'), "md" => __T('medium'), "lg" => __T('large'));
     $this->shareButtons = movio_modules_sharingButtons_views_SharingButton::getSharingButtonList();
 }
示例#11
0
 /**
  * Init
  *
  * @return	void
  * @access	public
  */
 function init()
 {
     $this->defineAttribute('cssClass', false, '', COMPONENT_TYPE_STRING);
     $this->defineAttribute('type', false, 'ALL', COMPONENT_TYPE_STRING);
     $this->defineAttribute('message', false, NULL, COMPONENT_TYPE_STRING);
     $this->defineAttribute('showEmpty', false, false, COMPONENT_TYPE_BOOLEAN);
     parent::init();
 }
示例#12
0
 function init()
 {
     // define the custom attributes
     $this->defineAttribute('filter', false, '', COMPONENT_TYPE_STRING);
     $this->defineAttribute('copyCheckbox', false, true, COMPONENT_TYPE_BOOLEAN);
     // call the superclass for validate the attributes
     parent::init();
 }
示例#13
0
 function init()
 {
     // define the custom attributes
     $this->defineAttribute('height', false, NULL, COMPONENT_TYPE_INTEGER);
     $this->defineAttribute('width', false, NULL, COMPONENT_TYPE_INTEGER);
     // call the superclass for validate the attributes
     parent::init();
 }
示例#14
0
 function init()
 {
     // define the custom attributes
     $this->defineAttribute('entityTypeId', false, null, COMPONENT_TYPE_INTEGER);
     $this->defineAttribute('generateLinks', false, false, COMPONENT_TYPE_BOOLEAN);
     $this->defineAttribute('addGraphJsLibs.js', false, true, COMPONENT_TYPE_BOOLEAN);
     // call the superclass for validate the attributes
     parent::init();
 }
示例#15
0
 public function render($outputMode = NULL, $skipChilds = false)
 {
     parent::render($outputMode, $skipChilds);
     if (!org_glizy_ObjectValues::get('org.glizycms.js', 'jsTree', false)) {
         org_glizy_ObjectValues::set('org.glizycms.js', 'jsTree', true);
         $this->addOutputCode(org_glizy_helpers_JS::linkStaticJSfile('jquery/jquery-jstree/jquery.jstree.js'));
         $this->addOutputCode(org_glizy_helpers_JS::linkStaticJSfile('jquery/jquery-jstree/jquery.cookie.js'));
     }
 }
示例#16
0
 function init()
 {
     // define the custom attributes
     $this->defineAttribute('label', false, '{i18n:Filter by type}', COMPONENT_TYPE_STRING);
     $this->defineAttribute('dataGridAjaxId', true, '', COMPONENT_TYPE_STRING);
     $this->defineAttribute('fieldNumber', true, '', COMPONENT_TYPE_STRING);
     $this->defineAttribute('recordClassName', true, '', COMPONENT_TYPE_STRING);
     parent::init();
 }
示例#17
0
 function init()
 {
     // define the custom attributes
     $this->defineAttribute('cssClass', false, 'languages', COMPONENT_TYPE_STRING);
     $this->defineAttribute('separator', false, 'none', COMPONENT_TYPE_STRING);
     // none, start, end
     // call the superclass for validate the attributes
     parent::init();
 }
示例#18
0
文件: CSS.php 项目: GruppoMeta/Movio
 /**
  * Init
  *
  * @return	void
  * @access	public
  */
 function init()
 {
     parent::init();
     // define the custom attributes
     $this->defineAttribute('src', false, NULL, COMPONENT_TYPE_STRING);
     $this->defineAttribute('folder', false, NULL, COMPONENT_TYPE_STRING);
     $this->defineAttribute('inline', false, false, COMPONENT_TYPE_BOOLEAN);
     $this->defineAttribute('editableRegion', false, 'head', COMPONENT_TYPE_STRING);
 }
示例#19
0
 /**
  * Init
  *
  * @return	void
  * @access	public
  */
 function init()
 {
     $this->defineAttribute('dataProvider', true, NULL, COMPONENT_TYPE_OBJECT);
     $this->defineAttribute('idName', false, 'id', COMPONENT_TYPE_STRING);
     $this->defineAttribute('getRelations', false, false, COMPONENT_TYPE_BOOLEAN);
     $this->defineAttribute('routeUrl', false, NULL, COMPONENT_TYPE_STRING);
     $this->defineAttribute('query', false, NULL, COMPONENT_TYPE_STRING);
     $this->defineAttribute('createModelComponents', false, true, COMPONENT_TYPE_BOOLEAN);
     parent::init();
 }
示例#20
0
 /**
  * Init
  *
  * @return	void
  * @access	public
  */
 function init()
 {
     // define the custom attributes
     $this->defineAttribute('cssClass', false, NULL, COMPONENT_TYPE_STRING);
     $this->defineAttribute('label', false, '', COMPONENT_TYPE_STRING);
     $this->defineAttribute('adm:required', false, false, COMPONENT_TYPE_BOOLEAN);
     $this->defineAttribute('adm:requiredMessage', false, NULL, COMPONENT_TYPE_STRING);
     // call the superclass for validate the attributes
     parent::init();
 }
示例#21
0
 /**
  * Init
  *
  * @return	void
  * @access	public
  */
 function init()
 {
     // define the custom attributes
     $this->defineAttribute('tag', false, NULL, COMPONENT_TYPE_STRING);
     $this->defineAttribute('filter', true, NULL, COMPONENT_TYPE_STRING);
     $this->defineAttribute('mode', false, 'PRE', COMPONENT_TYPE_STRING);
     // call the superclass for validate the attributes
     parent::init();
     $this->doLater($this, '_setOutputFilter');
 }
示例#22
0
 /**
  * Init
  *
  * @return	void
  * @access	public
  */
 function init()
 {
     $this->defineAttribute('attribute', true, NULL, COMPONENT_TYPE_STRING);
     $this->defineAttribute('value', true, NULL, COMPONENT_TYPE_STRING);
     $this->defineAttribute('target', true, NULL, COMPONENT_TYPE_OBJECT);
     $this->defineAttribute('reprocess', false, false, COMPONENT_TYPE_BOOLEAN);
     $this->defineAttribute('preprocess', false, false, COMPONENT_TYPE_BOOLEAN);
     $this->doLater($this, 'preProcess');
     parent::init();
 }
示例#23
0
 /**
  * Init
  *
  * @return	void
  * @access	public
  */
 function init()
 {
     // define the custom attributes
     $this->defineAttribute('key', true, NULL, COMPONENT_TYPE_STRING);
     $this->defineAttribute('value', false, NULL, COMPONENT_TYPE_STRING);
     $this->defineAttribute('action', false, 'get', COMPONENT_TYPE_STRING);
     // call the superclass for validate the attributes
     $this->doLater($this, 'preProcess');
     parent::init();
 }
示例#24
0
 function init()
 {
     // define the custom attributes
     $this->defineAttribute('pageId', true, 'MediaStorageBrowser', COMPONENT_TYPE_STRING);
     $this->defineAttribute('title', false, 'Seleziona Media', COMPONENT_TYPE_STRING);
     $this->defineAttribute('onlyFolder', false, false, COMPONENT_TYPE_BOOLEAN);
     $this->defineAttribute('onlyFirstLevel', false, false, COMPONENT_TYPE_BOOLEAN);
     $this->defineAttribute('customPath', false, '', COMPONENT_TYPE_STRING);
     // call the superclass for validate the attributes
     parent::init();
 }
示例#25
0
 /**
  * Init
  *
  * @return    void
  * @access    public
  */
 function init()
 {
     $this->defineAttribute('addWrapDiv', false, false, COMPONENT_TYPE_BOOLEAN);
     $this->defineAttribute('cssClass', false, '', COMPONENT_TYPE_STRING);
     $this->defineAttribute('cssClassCurrent', false, 'current', COMPONENT_TYPE_STRING);
     $this->defineAttribute('forceLink', false, true, COMPONENT_TYPE_BOOLEAN);
     $this->defineAttribute('addQueryString', false, false, COMPONENT_TYPE_BOOLEAN);
     $this->defineAttribute('routeUrl', false, 'moduleAction', COMPONENT_TYPE_STRING);
     // call the superclass for validate the attributes
     parent::init();
 }
示例#26
0
 /**
  * Init
  *
  * @return	void
  * @access	public
  */
 function init()
 {
     // define the custom attributes
     $this->defineAttribute('src', false, NULL, COMPONENT_TYPE_STRING);
     $this->defineAttribute('folder', false, NULL, COMPONENT_TYPE_STRING);
     $this->defineAttribute('type', false, 'text/javascript', COMPONENT_TYPE_STRING);
     $this->defineAttribute('inline', false, false, COMPONENT_TYPE_BOOLEAN);
     $this->defineAttribute('editableRegion', false, 'head', COMPONENT_TYPE_STRING);
     $this->defineAttribute('extension', false, 'js', COMPONENT_TYPE_STRING);
     parent::init();
 }
示例#27
0
 /**
  * Init
  *
  * @return	void
  * @access	public
  */
 function init()
 {
     // define the custom attributes
     $this->defineAttribute('key', false, NULL, COMPONENT_TYPE_STRING);
     $this->defineAttribute('options', false, NULL, COMPONENT_TYPE_STRING);
     $this->defineAttribute('selected', false, false, COMPONENT_TYPE_BOOLEAN);
     $this->defineAttribute('value', true, '', COMPONENT_TYPE_STRING);
     $this->defineAttribute('acl', false, '', COMPONENT_TYPE_STRING);
     // call the superclass for validate the attributes
     parent::init();
 }
示例#28
0
 function init()
 {
     // define the custom attributes
     $this->defineAttribute('entityTypeId', false, null, COMPONENT_TYPE_INTEGER);
     $this->defineAttribute('generateLinks', false, false, COMPONENT_TYPE_BOOLEAN);
     $this->defineAttribute('addGraphJsLibs.js', false, true, COMPONENT_TYPE_BOOLEAN);
     // call the superclass for validate the attributes
     parent::init();
     $this->language = $this->_application->isAdmin() ? $this->_application->getEditingLanguage() : $this->_application->getLanguage();
     $this->localeService = $this->_application->retrieveProxy('movio.modules.ontologybuilder.service.LocaleService');
 }
示例#29
0
 /**
  * Init
  *
  * @return	void
  * @access	public
  */
 function init()
 {
     $this->defineAttribute('recordClassName', true, '', COMPONENT_TYPE_STRING);
     $this->defineAttribute('query', false, NULL, COMPONENT_TYPE_STRING);
     $this->defineAttribute('queryParams', false, NULL, COMPONENT_TYPE_STRING);
     $this->defineAttribute('field', false, NULL, COMPONENT_TYPE_STRING);
     $this->defineAttribute('skipEmpty', false, true, COMPONENT_TYPE_BOOLEAN);
     $this->defineAttribute('delimiter', false, '', COMPONENT_TYPE_STRING);
     $this->defineAttribute('useCache', false, false, COMPONENT_TYPE_BOOLEAN);
     parent::init();
 }
示例#30
0
 /**
  * Init
  *
  * @return	void
  * @access	public
  */
 function init()
 {
     $this->defineAttribute('label', false, '', COMPONENT_TYPE_STRING);
     $this->defineAttribute('separator', false, ' > ', COMPONENT_TYPE_STRING);
     $this->defineAttribute('cssClass', false, '', COMPONENT_TYPE_STRING);
     $this->defineAttribute('cssCurrent', false, 'current', COMPONENT_TYPE_STRING);
     $this->defineAttribute('menuId', false, NULL, COMPONENT_TYPE_STRING);
     // call the superclass for validate the attributes
     parent::init();
     $this->addEventListener(GLZ_EVT_BREADCRUMBS_UPDATE, $this);
     $this->addEventListener(GLZ_EVT_SITEMAP_UPDATE, $this);
 }