function ValidateData()
 {
     $errors = parent::ValidateData();
     if ($errors === FALSE) {
         $errors = array();
     }
     if ($this->mTemplateId <= 0) {
         $errors[] = lang('nofieldgiven', array(lang('template')));
     }
     foreach ($this->_contentBlocks as $contentBlock) {
         if ($contentBlock->GetBlockProperty('required') && $this->GetProperty($contentBlock->GetBlockProperty('id')) == '') {
             $errors[] = lang('nofieldgiven', array($contentBlock->GetBlockProperty('name')));
         }
     }
     if ($this->GetPropertyValue('use_expire_date') && check_permission(get_userid(), 'Manage AdvancedContent Options') && $this->GetProperty('end_date') <= $this->GetProperty('start_date')) {
         $AdvancedContent =& cms_utils::get_module('AdvancedContent');
         $errors[] = $AdvancedContent->lang('error_expiredate');
     }
     if (check_permission(get_userid(), 'Manage AdvancedContent Options') && $this->GetProperty('feu_access') && $this->GetProperty('hide_menu_item') == 2) {
         $AdvancedContent =& cms_utils::get_module('AdvancedContent');
         $errors[] = $AdvancedContent->lang('error_pageaccess');
     }
     return count($errors) > 0 ? $errors : FALSE;
 }
 function ValidateData()
 {
     return ac_admin_ops::ValidateData($this, parent::ValidateData());
 }