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) { } }