public function findWithPreparedStatement($ps) { $cacheKey = null; if ($this->cache !== null) { $cacheKey = serialize($ps); if (($rows = $this->cache->get($cacheKey)) !== false) { return $rows; } } $rows = array(); $rs = $this->connection->executeQuery($ps); while ($arr = $this->connection->fetchArray($rs)) { $row = new Appperm(); $row->loadFromArray($arr); $rows[] = $row; } $this->connection->freeResult($rs); if ($this->cache !== null) { $this->cache->set($cacheKey, $rows); } return $rows; }
public static function createDefault() { $v = new Appperm(); $v->defaultAllFields(); return $v; }