PHP Class Flickr, pubwich

Author: Rémi Prévost (exomel.com)
Inheritance: extends Service
显示文件 Open project: remiprev/pubwich Class Usage Examples

Public Properties

Property Type Description
$compteur
$row
$sort

Public Methods

Method Description
__construct ( $config )
getAbsoluteUrl ( array $photo, $size = 's' ) : string Return a Flickr photo URL
getData ( ) : SimpleXMLElement Overcharge parent::getData()
populateItemTemplate ( &$item ) : array Return an array of key->value using the item data
setVariables ( array $config ) : void Sets some common variables (row, sort, compteur) and item template

Method Details

__construct() public method

public __construct ( $config )

getAbsoluteUrl() public method

Return a Flickr photo URL
public getAbsoluteUrl ( array $photo, $size = 's' ) : string
$photo array Photo item
return string

getData() public method

Overcharge parent::getData()
public getData ( ) : SimpleXMLElement
return SimpleXMLElement

populateItemTemplate() public method

Return an array of key->value using the item data
public populateItemTemplate ( &$item ) : array
return array

setVariables() public method

Sets some common variables (row, sort, compteur) and item template
public setVariables ( array $config ) : void
$config array The config array
return void

Property Details

$compteur public_oe property

public $compteur

$row public_oe property

public $row

$sort public_oe property

public $sort