PHP Class FavoriteService

Inheritance: extends CApplicationComponent
Mostrar archivo Open project: yupe/yupe Class Usage Examples

Public Properties

Property Type Description
$key string

Protected Properties

Property Type Description
$productRepository ProductRepository
$session CHttpSession

Public Methods

Method Description
add ( $productId ) : boolean
count ( )
has ( $productId ) : boolean
init ( )
products ( ) : mixed
remove ( $productId ) : boolean

Protected Methods

Method Description
getData ( ) : mixed | null
setData ( array $data ) : boolean

Method Details

add() public method

public add ( $productId ) : boolean
$productId
return boolean

count() public method

public count ( )

getData() protected method

protected getData ( ) : mixed | null
return mixed | null

has() public method

public has ( $productId ) : boolean
$productId
return boolean

init() public method

public init ( )

products() public method

public products ( ) : mixed
return mixed

remove() public method

public remove ( $productId ) : boolean
$productId
return boolean

setData() protected method

protected setData ( array $data ) : boolean
$data array
return boolean

Property Details

$key public_oe property

public string $key
return string

$productRepository protected_oe property

protected ProductRepository $productRepository
return ProductRepository

$session protected_oe property

protected CHttpSession $session
return CHttpSession