/** * Returns the module's preferences * * @return Preferences */ public function getPreferences() { if ($this->preferences === null) { $this->preferences = $this->service->getPreferenceLoader()->getModulePreferences($this->model->getId()); } return $this->preferences; }
/** * Filter the query by a related \keeko\core\model\Module object * * @param \keeko\core\model\Module|ObjectCollection $module The related object(s) to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @throws \Propel\Runtime\Exception\PropelException * * @return ChildActionQuery The current query, for fluid interface */ public function filterByModule($module, $comparison = null) { if ($module instanceof \keeko\core\model\Module) { return $this->addUsingAlias(ActionTableMap::COL_MODULE_ID, $module->getId(), $comparison); } elseif ($module instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(ActionTableMap::COL_MODULE_ID, $module->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterByModule() only accepts arguments of type \\keeko\\core\\model\\Module or Collection'); } }
/** * Filter the query by a related \keeko\core\model\Module object * * @param \keeko\core\model\Module|ObjectCollection $module the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return ChildPackageQuery The current query, for fluid interface */ public function filterByModule($module, $comparison = null) { if ($module instanceof \keeko\core\model\Module) { return $this->addUsingAlias(PackageTableMap::COL_ID, $module->getId(), $comparison); } elseif ($module instanceof ObjectCollection) { return $this->useModuleQuery()->filterByPrimaryKeys($module->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByModule() only accepts arguments of type \\keeko\\core\\model\\Module or Collection'); } }
/** * Declares an association between this object and a ChildModule object. * * @param ChildModule $v * @return $this|\keeko\core\model\Action The current object (for fluent API support) * @throws PropelException */ public function setModule(ChildModule $v = null) { if ($v === null) { $this->setModuleId(NULL); } else { $this->setModuleId($v->getId()); } $this->aModule = $v; // Add binding for other direction of this n:n relationship. // If this object has already been added to the ChildModule object, it will not be re-added. if ($v !== null) { $v->addAction($this); } return $this; }
/** * Exclude object from result * * @param ChildModule $module Object to remove from the list of results * * @return $this|ChildModuleQuery The current query, for fluid interface */ public function prune($module = null) { if ($module) { $this->addUsingAlias(ModuleTableMap::COL_ID, $module->getId(), Criteria::NOT_EQUAL); } return $this; }