21 public static function prepareGetById($name, $className, $included =
false, $cache =
null) {
22 return self::$preparedDAOQueries[$name] =
new DAOPreparedQueryById($className, $included, $cache);
25 public static function prepareGetOne($name, $className, $condition =
'', $included =
false, $cache =
null) {
26 return self::$preparedDAOQueries[$name] =
new DAOPreparedQueryOne($className, $condition, $included, $cache);
29 public static function prepareGetAll($name, $className, $condition =
'', $included =
false, $cache =
null) {
30 return self::$preparedDAOQueries[$name] =
new DAOPreparedQueryAll($className, $condition, $included, $cache);
34 if (isset(self::$preparedDAOQueries[$name])) {
35 return self::$preparedDAOQueries[$name]->execute($params, $useCache);
41 if (isset(self::$preparedDAOQueries[$name])) {
42 self::$preparedDAOQueries[$name]->storeDbCache();
Ubiquity\orm\core\prepared$DAOPreparedQueryAll This class is part of Ubiquity.
Ubiquity\orm\core\prepared$DAOPreparedQueryOne This class is part of Ubiquity.
Ubiquity\orm\core\prepared$DAOPreparedQuery This class is part of Ubiquity.
Ubiquity\orm\core\prepared$DAOPreparedQueryOne This class is part of Ubiquity.
Ubiquity\orm\traits$DAOPreparedTrait This class is part of Ubiquity.
static prepareGetOne($name, $className, $condition='', $included=false, $cache=null)
static storeDbCachePrepared($name)
static prepareGetAll($name, $className, $condition='', $included=false, $cache=null)
static prepareGetById($name, $className, $included=false, $cache=null)
static executePrepared($name, $params=[], $useCache=false)
static $preparedDAOQueries
static getPrepared(string $name)
Returns the daoPreparedQuery corresponding to a name.
Ubiquity\orm\traits This class is part of Ubiquity.