1: <?php
2:
3: namespace Thelia\Model;
4:
5: use Thelia\Model\om\BaseConfigQuery;
6:
7:
8: /**
9: * Skeleton subclass for performing query and update operations on the 'config' table.
10: *
11: *
12: *
13: * You should add additional methods to this class to meet the
14: * application requirements. This class will only be generated as
15: * long as it does not already exist in the output directory.
16: *
17: * @package propel.generator.Thelia.Model
18: */
19: class ConfigQuery extends BaseConfigQuery
20: {
21: public static function read($search, $default)
22: {
23: $value = self::create()->findOneByName($search);
24:
25: return $value ? $value->getValue() : $default;
26: }
27: }
28: