PHP Class RainLab\Translate\Classes\MLCmsObject

Author: Alexey Bobkov, Samuel Georges
Inheritance: extends Cms\Classes\CmsCompoundObject
Show file Open project: rainlab/translate-plugin

Public Properties

Property Type Description
$locale
$parent

Protected Properties

Property Type Description
$fillable The attributes that are mass assignable.

Public Methods

Method Description
findLocale ( $locale, $page )
forLocale ( $locale, $page )
getObjectTypeDirName ( ) : string Returns the directory name corresponding to the object type.
setContext ( $locale, $parent )

Method Details

findLocale() public static method

public static findLocale ( $locale, $page )

forLocale() public static method

public static forLocale ( $locale, $page )

getObjectTypeDirName() public method

For pages the directory name is "pages", for layouts - "layouts", etc.
public getObjectTypeDirName ( ) : string
return string

setContext() public static method

public static setContext ( $locale, $parent )

Property Details

$fillable protected property

The attributes that are mass assignable.
protected $fillable

$locale public static property

public static $locale

$parent public static property

public static $parent