public function executeList() { $idType = $this->getRequestParameter('IdType', null); $id = $this->getRequestParameter('id', null); if (!$idType) { //a current vocabulary is required to be in the request URL myActionTools::requireVocabularyFilter(); } else { $this->getRequest()->getParameterHolder()->set($idType, $id); } if ($idType !== 'import_id') { $vocabulary = myActionTools::findCurrentVocabulary(); $this->vocabulary = $vocabulary; if (in_array($idType, array('concept_id', 'property_id'))) { $this->concept = myActionTools::findCurrentConcept(); $this->setFlash('hasConcept', true); } } else { $import = FileImportHistoryPeer::retrieveByPK($id); if ($import) { $vocabulary = $import->getVocabulary(); $this->vocabulary = $vocabulary; } } //get the versions array $c = new Criteria(); $c->add(VocabularyHasVersionPeer::VOCABULARY_ID, $vocabulary->getId()); $versions = VocabularyHasVersionPeer::doSelect($c); $this->setFlash('versions', $versions); parent::executeList(); }
/** * overrides the parent executeList function * */ public function executeList() { if (!$this->hasRequestParameter('user_id')) { //a current vocabulary is required $vocabulary = myActionTools::requireVocabularyFilter(); } parent::executeList(); }
public function executeList() { //a current vocabulary is required to be in the request URL myActionTools::requireVocabularyFilter(); //clear any existing property filters since they don't apply now $this->getUser()->getAttributeHolder()->removeNamespace('sf_admin/concept_property/filters'); $this->getUser()->getAttributeHolder()->removeNamespace('sf_admin/concept_property_history/filters'); parent::executeList(); }