2015-01-29 01:50:29 +05:30
|
|
|
<?php
|
|
|
|
|
|
|
|
use Phalcon\Mvc\Collection;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @property string $id
|
|
|
|
*/
|
|
|
|
class Skins extends Collection {
|
2015-10-15 16:31:23 +05:30
|
|
|
|
2015-01-29 01:50:29 +05:30
|
|
|
public $_id;
|
|
|
|
public $userId;
|
|
|
|
public $nickname;
|
|
|
|
public $skinId;
|
|
|
|
public $url;
|
|
|
|
public $is1_8;
|
|
|
|
public $isSlim;
|
|
|
|
public $hash;
|
|
|
|
|
|
|
|
public function getId() {
|
|
|
|
return $this->_id;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getSource() {
|
2015-10-15 16:31:23 +05:30
|
|
|
return 'skins';
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param string $nickname
|
|
|
|
* @return bool|Skins
|
|
|
|
*/
|
|
|
|
public static function findByNickname($nickname) {
|
|
|
|
return static::findFirst([
|
|
|
|
[
|
|
|
|
'nickname' => mb_convert_case($nickname, MB_CASE_LOWER, ENCODING),
|
|
|
|
],
|
|
|
|
]);
|
2015-01-29 01:50:29 +05:30
|
|
|
}
|
2015-10-15 16:31:23 +05:30
|
|
|
|
|
|
|
}
|