PHP Class infoweb\cms\models\PlaceHolder

Inheritance: extends Image
Datei anzeigen Open project: infoweb-internet-solutions/yii2-cms Class Usage Examples

Public Properties

Property Type Description
$filePath
$urlAlias

Public Methods

Method Description
__construct ( ) * public function getUrl($size = false){ $url = $this->getModule()->placeHolderUrl; if(!$url){ throw new \Exception('PlaceHolder image must have url setting!!!'); } return $url; }
getPathToOrigin ( )
setMain ( $isMain = true )

Protected Methods

Method Description
getSubDur ( )

Method Details

__construct() public method

* public function getUrl($size = false){ $url = $this->getModule()->placeHolderUrl; if(!$url){ throw new \Exception('PlaceHolder image must have url setting!!!'); } return $url; }
public __construct ( )

getPathToOrigin() public method

public getPathToOrigin ( )

getSubDur() protected method

protected getSubDur ( )

setMain() public method

public setMain ( $isMain = true )

Property Details

$filePath public_oe property

public $filePath

$urlAlias public_oe property

public $urlAlias