Example #1
0
 public function save($extraData = null, $commit = true)
 {
     /* The concepts relations is implemented but needs to be tested. Its not needed for now.
     		$this->updateRelatedConcepts($extraData['includeConcepts']);
     		unset($extraData['includeConcepts']);
     		*/
     parent::save($extraData, $commit);
 }
Example #2
0
 /**
  * Checks is the concept valid and saves it if it is.
  *
  * @see Api_Models_Concept::save()
  * @param array $extraData
  * @param bool $commit, optional To do a solr commit or not. Default: true.
  * @param bool $ignoreValidation, optional, Default: false If set to true the validation on save will not be performed.
  * @return bool True if the save is successfull. False otherwise. You can see errors by calling getErrors();
  */
 public function save($extraData = null, $commit = true, $ignoreValidation = false)
 {
     if ($ignoreValidation || $this->_validateSave($extraData)) {
         parent::save($extraData, $commit);
         return true;
     } else {
         return false;
     }
 }