Exemplo n.º 1
0
 /**
  * Remove the proposed location. Also removes the editors who proposed the location.
  *
  * @return boolean true on success, false on failure
  * @access public
  */
 function removeProposedLocation()
 {
     $this->_status->setProposedFor(0);
     $this->_editors->delAllWithOneValue(RESOURCE_EDITION_LOCATION, 2);
     //remove the edition
     $this->_status->delEdition(RESOURCE_EDITION_LOCATION);
     //remove any validations refused
     $this->_status->delValidationRefused(RESOURCE_EDITION_LOCATION);
 }
 /**
  * Add category clearances to current stack
  * 
  * @param CMS_stack $clearances, clearances to add
  * @return boolean true on success
  * @access public
  */
 function add($clearances)
 {
     if (is_a($clearances, "CMS_stack")) {
         $arr = $clearances->getElements();
         if (is_array($arr) && $arr) {
             while (list($k, $v) = each($arr)) {
                 $this->_categoriesClearances->delAllWithOneValue($v[1], 1);
                 $this->_categoriesClearances->add($v[1], $v[2]);
             }
         }
         return true;
     } else {
         $this->raiseError("Stack object required : " . var_dump($clearances));
         return false;
     }
 }
Exemplo n.º 3
0
 /**
  * Del Validation Clearance
  *
  * @var string $moduleCodename
  * @return void
  * @access public
  */
 function delValidationClearance($moduleCodename)
 {
     if ($this->hasValidationClearance($moduleCodename)) {
         $this->_validationClearances->delAllWithOneValue($moduleCodename, 1);
     }
 }