public static getByName ( $name, $storeId = 1 ) : |
||
$name | ||
Результат |
public static function getByName($name, $storeId = 1)
{
try {
$config = new self();
$config->setName($name);
$config->setStoreId($storeId ? $storeId : 1);
$config->getDao()->getByName();
return $config;
} catch (\Exception $e) {
}
}
public function getgroupAction() { $id = $this->_getParam("id"); $config = Classificationstore\GroupConfig::getByName($id); $data = array("id" => $id, "name" => $config->getName(), "description" => $config->getDescription()); $this->_helper->json($data); }