Property | Type | Description | |
---|---|---|---|
$uid |
Method | Description | |
---|---|---|
__construct ( integer $uid ) | Construct Closet object with owner's uid. | |
__destruct ( ) | Save when the object will be destructed. | |
add ( integer $tid, string $name ) : boolean | Add an item to the closet. | |
getItems ( string $category = "all" ) : array | Get array of instances of App\Models\Texture. | |
has ( integer $tid ) : boolean | Check if texture is in the closet. | |
remove ( integer $tid ) : boolean | Remove a texture from closet. | |
rename ( integer $tid, string $new_name ) : void | Rename closet item. | |
save ( ) : boolean | Do really database operations. | |
setTextures ( string $textures ) | Set textures string manually. |
Method | Description | |
---|---|---|
checkTextureExist ( integer $tid ) : boolean | Check if given tid is valid. |
public __construct ( integer $uid ) | ||
$uid | integer |
public setTextures ( string $textures ) | ||
$textures | string |