PHP Class Scalr\Model\Entity\Tag

Since: 5.0 (02.07.2014)
Author: Igor Vodiasov ([email protected])
Inheritance: extends Scalr\Model\AbstractEntity
Show file Open project: scalr/scalr Class Usage Examples

Public Properties

Property Type Description
$accountId integer Tag's accountId
$id integer ID
$name string Tag's name

Public Methods

Method Description
clearTags ( ) Clear unused tags
deleteTags ( string $resource, integer $resourceId )
getAll ( $accountId ) : array
getTags ( string $resource, integer $resourceId ) : array
setTags ( array $tags, integer $accountId, string $resource, integer $resourceId )

Method Details

clearTags() public static method

Clear unused tags
public static clearTags ( )

deleteTags() public static method

public static deleteTags ( string $resource, integer $resourceId )
$resource string
$resourceId integer

getAll() public static method

public static getAll ( $accountId ) : array
$accountId
return array

getTags() public static method

public static getTags ( string $resource, integer $resourceId ) : array
$resource string
$resourceId integer
return array

setTags() public static method

public static setTags ( array $tags, integer $accountId, string $resource, integer $resourceId )
$tags array
$accountId integer
$resource string
$resourceId integer

Property Details

$accountId public property

Tag's accountId
public int $accountId
return integer

$id public property

ID
public int $id
return integer

$name public property

Tag's name
public string $name
return string