Beispiel #1
0
 /**
  * Validates an edition. Sets the status as validated if it's a content validation.
  *
  * @param integer $edition the edition to validate
  * @return boolean true on success, false on failure.
  * @access public
  */
 function validateEdition($edition)
 {
     if ($this->_status->delEdition($edition)) {
         $this->_editors->delAllWithOneValue($edition, 2);
         if ($edition == RESOURCE_EDITION_CONTENT) {
             $this->_status->setValidated();
         }
         $this->_status->validatePublicationDates();
         return true;
     } else {
         return false;
     }
 }