change phpdoc api generator to phpdoc
This commit is contained in:
26
documentation/api/files/Model/ConfigQuery.php.txt
Normal file
26
documentation/api/files/Model/ConfigQuery.php.txt
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace Thelia\Model;
|
||||
|
||||
use Thelia\Model\Base\ConfigQuery as BaseConfigQuery;
|
||||
|
||||
|
||||
/**
|
||||
* Skeleton subclass for performing query and update operations on the 'config' table.
|
||||
*
|
||||
*
|
||||
*
|
||||
* You should add additional methods to this class to meet the
|
||||
* application requirements. This class will only be generated as
|
||||
* long as it does not already exist in the output directory.
|
||||
*
|
||||
*/
|
||||
class ConfigQuery extends BaseConfigQuery {
|
||||
public static function read($search, $default = null)
|
||||
{
|
||||
$value = self::create()->findOneByName($search);
|
||||
|
||||
return $value ? $value->getValue() : $default;
|
||||
}
|
||||
} // ConfigQuery
|
||||
|
||||
Reference in New Issue
Block a user