public function __construct() { $className = Query::stripNamespaceFromClassName($this); $this->className = "Models\\Tables\\" . substr($className, 0, strlen($className) - 3); $this->tableName = strtolower(substr($className, 0, strlen($className) - 3)); $this->dbManager = DBManager::getInstance(); }
public function prepareFindByLogin($login) { $tmp = parent::__call("prepareFindByLogin", array($login))->execute(); if (count($tmp) == 0) { return false; } return $tmp[0]; }