public function __construct($fen = null) { if (!isset($fen)) { $fen = ChessRegistry::getDefaultFen(); } $this->fen = $this->getValidFen($fen); parent::__construct(); }
public function __construct($id = null) { if (!isset(self::$tempPath)) { self::$tempPath = LudoDBRegistry::get(self::FILE_UPLOAD_KEY); if (!isset(self::$tempPath)) { throw new Exception("Temp path for file uploads not set. Use LudoDBRegistry::set(self::FILE_UPLOAD_KEY, 'your/path'); to set path", 500); } } parent::__construct($id); }
/** * Creates new LudoDBCache instance. An empty LudoDBService class is sent to the constructor along * with constructor arguments. The cache class will search for records where "class_name" equals * class of given service and arguments compiled to a key matches cache_key in the database table. * @param LudoDBService $resource * @param array $arguments */ public function __construct(LudoDBService $resource = null, array $arguments = null) { if (isset($resource)) { $resourceName = get_class($resource); $cacheKey = $this->getCacheKey($resourceName, $arguments); parent::__construct($cacheKey); if (isset($cacheKey)) { $this->setKey($cacheKey); $this->setClassName($resourceName); $this->JSON = $this->getValue('cache_value'); } } else { parent::__construct(); } }
public function __construct($playerId = null, $category = null) { parent::__construct($playerId, $category); }
public function __construct($id = null) { parent::__construct($id); }
public function __construct($key = null) { parent::__construct($key); }