app\models\Closet::has PHP Method

has() public method

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