app\models\Closet::has PHP Метод

has() публичный Метод

Check if texture is in the closet.
public has ( integer $tid ) : boolean
$tid integer
Результат boolean
    public function has($tid)
    {
        foreach ($this->textures as $item) {
            if ($item['tid'] == $tid) {
                return true;
            }
        }
        return false;
    }