function SetProperties() { parent::SetProperties(); $this->AddBaseProperty('template', 4, 0, 'int'); $this->AddBaseProperty('pagemetadata', 20); $this->AddContentProperty('searchable', 8, 0, 'int'); $this->AddContentProperty('pagedata', 25); $this->AddContentProperty('disable_wysiwyg', 60, 0, 'int'); if (ac_utils::get_module('AdvancedContent')->GetPreference('use_advanced_pageoptions', 0)) { $this->AddContentProperty('use_expire_date', 99, 0, 'int'); $this->AddContentProperty('start_date', 100, 0, 'int'); $this->AddContentProperty('end_date', 101, 0, 'int'); if ($feusers =& ac_utils::get_module('FrontEndUsers')) { $this->AddContentProperty('feu_access', 102); $this->AddContentProperty('redirect_page', 103, 0, 'int'); $this->AddContentProperty('inherit_feu_params', 104, 0, 'int'); $this->AddContentProperty('feu_params', 105, 0); $this->AddContentProperty('feu_params_smarty', 106, 0, 'int'); $this->AddContentProperty('inherit_custom_params', 107, 0, 'int'); $this->AddContentProperty('custom_params', 108, 0); $this->AddContentProperty('custom_params_smarty', 109, 0, 'int'); $this->AddContentProperty('feu_action', 110, 0, 'int'); $this->AddContentProperty('hide_menu_item', 111, 0, 'int'); } } # Backward compatibility (deprecated) $this->mPreview = true; # ToDo: remove this }
function SetProperties() { parent::SetProperties(); $AdvancedContent =& cms_utils::get_module('AdvancedContent'); #$AdvancedContent->SetAllowedParam('parent_id', CLEAN_INT); #$AdvancedContent->SetAllowedParam('content_type', CLEAN_STRING); #$AdvancedContent->SetAllowedParam('cachable', CLEAN_INT); $this->AddBaseProperty('template', 4, 0, 'int'); $this->AddBaseProperty('pagemetadata', 20); $this->AddContentProperty('searchable', 8, 0, 'int'); $this->AddContentProperty('pagedata', 25); $this->AddContentProperty('disable_wysiwyg', 60, 0, 'int'); #$AdvancedContent->SetAllowedParam('template_id', CLEAN_INT); #$AdvancedContent->SetAllowedParam('metadata', CLEAN_STRING); #$AdvancedContent->SetAllowedParam('searchable', CLEAN_INT); #$AdvancedContent->SetAllowedParam('pagedata', CLEAN_STRING); #$AdvancedContent->SetAllowedParam('disable_wysiwyg', CLEAN_INT); if (cms_utils::get_module('AdvancedContent')->GetPreference('use_advanced_pageoptions', 0)) { $this->AddContentProperty('use_expire_date', 99, 0, 'int'); $this->AddContentProperty('start_date', 100, 0, 'int'); $this->AddContentProperty('end_date', 101, 0, 'int'); #$AdvancedContent->SetAllowedParam('use_expire_date', CLEAN_INT); #$AdvancedContent->SetAllowedParam('start_date', CLEAN_INT); #$AdvancedContent->SetAllowedParam('AdvancedContentStartDate', CLEAN_INT); #$AdvancedContent->SetAllowedParam('AdvancedContentStartTime', CLEAN_INT); #$AdvancedContent->SetAllowedParam('end_date', CLEAN_INT); #$AdvancedContent->SetAllowedParam('AdvancedContentEndDate', CLEAN_INT); #$AdvancedContent->SetAllowedParam('AdvancedContentEndTime', CLEAN_INT); if ($feusers =& cms_utils::get_module('FrontEndUsers')) { $this->AddContentProperty('feu_access', 102); $this->AddContentProperty('redirect_page', 103, 0, 'int'); $this->AddContentProperty('feu_action', 110, 0, 'int'); $this->AddContentProperty('hide_menu_item', 111, 0, 'int'); $this->AddContentProperty('inherit_feu_params', 104, 0, 'int'); $this->AddContentProperty('feu_params', 105, 0); $this->AddContentProperty('feu_params_smarty', 106, 0, 'int'); $this->AddContentProperty('inherit_custom_params', 107, 0, 'int'); $this->AddContentProperty('custom_params', 108, 0); $this->AddContentProperty('custom_params_smarty', 109, 0, 'int'); #$AdvancedContent->SetAllowedParam('feu_access', CLEAN_NONE); #$AdvancedContent->SetAllowedParam('redirect_page', CLEAN_INT); #$AdvancedContent->SetAllowedParam('feu_action', CLEAN_INT); #$AdvancedContent->SetAllowedParam('hide_menu_item', CLEAN_INT); #$AdvancedContent->SetAllowedParam('inherit_feu_params', CLEAN_INT); #$AdvancedContent->SetAllowedParam('feu_params', CLEAN_STRING); #$AdvancedContent->SetAllowedParam('feu_params_smarty', CLEAN_INT); #$AdvancedContent->SetAllowedParam('inherit_custom_params', CLEAN_INT); #$AdvancedContent->SetAllowedParam('custom_params', CLEAN_STRING); #$AdvancedContent->SetAllowedParam('custom_params_smarty', CLEAN_INT); } } $this->mPreview = true; }