/**
  * PHP5 type constructor
  *
  * @access public
  */
 function __construct()
 {
     parent::__construct("wimpq_options", new PhotoQRenderOptionVisitor());
     //get the PhotoQ error stack for easy access and set it up properly
     $this->_errStack =& PEAR_ErrorStack::singleton('PhotoQ');
     //get the db object
     $this->_db =& PhotoQSingleton::getInstance('PhotoQDB');
     //get alternative original identifier if available
     $originalID = get_option("wimpq_originalFolder");
     if ($originalID) {
         $this->ORIGINAL_IDENTIFIER = $originalID;
     }
     $this->_presetCategories = array('photoblog' => __('Photoblog Themes', 'PhotoQ'), 'textblog' => __('Textblog Themes', 'PhotoQ'), 'mixed' => __('Mixed (Text/Photoblog)', 'PhotoQ'), 'commercial' => __('Commercial Themes', 'PhotoQ'));
     //establish default options
     $this->_defineAndRegisterOptions();
     //localize strings in js scripts etc. of option controller
     $this->localizeStrings(array("switchLinkLabel" => __('Switch Sides', 'PhotoQ')));
 }
 /**
  * Validate options and record any errors occuring
  */
 function validateOptions()
 {
     //do the input validation
     $validationErrors = parent::validate();
     if (count($validationErrors)) {
         foreach ($validationErrors as $valError) {
             $this->_errStack->push(PHOTOQ_ERROR_VALIDATION, 'error', array(), $valError);
         }
     }
 }