PHP Class Gc\Datatype\AbstractDatatype\AbstractEditor

Inheritance: extends Gc\Core\Object
Mostrar archivo Open project: gotcms/gotcms Class Usage Examples

Protected Properties

Property Type Description
$config mixed Configuration
$datatype Gc\Datatype\AbstractDatatype Datatype
$name string Get name of datatype
$property Gc\Property\Model Property model

Public Methods

Method Description
__construct ( AbstractDatatype $datatypeAbstract ) Abstract function for save Editor
addPath ( string $dir ) : AbstractEditor Add path in Zend\View\Resolver\TemplatePathStack
getConfig ( ) : void Get configuration
getDatatype ( ) : AbstractDatatype Get datatype
getHelper ( string $name ) : mixed Retrieve helper from $name
getHelperManager ( ) : Zend\View\HelperPluginManager Get helper manager object
getName ( ) : string Get datatype name
getProperty ( ) : Model Return property model
getRequest ( ) : Zend\Http\PhpEnvironment\Request Get request object
getRouter ( ) : Zend\Mvc\Router\Http\TreeRouteStack Get router object
getUploadUrl ( ) : string Upload dir path
getValue ( ) : string Return property value
load ( ) : void Abstract function for load Editor
render ( string $name, array $data = [] ) : string Render template
save ( ) : void Abstract function for save Editor
setConfig ( mixed $value ) : AbstractEditor Set Configuration
setValue ( mixed $value ) : AbstractEditor Set property value

Method Details

__construct() public method

Abstract function for save Editor
public __construct ( AbstractDatatype $datatypeAbstract )
$datatypeAbstract Gc\Datatype\AbstractDatatype Datatype

addPath() public method

Add path in Zend\View\Resolver\TemplatePathStack
public addPath ( string $dir ) : AbstractEditor
$dir string Directory
return AbstractEditor

getConfig() public method

Get configuration
public getConfig ( ) : void
return void

getDatatype() public method

Get datatype
public getDatatype ( ) : AbstractDatatype
return Gc\Datatype\AbstractDatatype

getHelper() public method

Retrieve helper from $name
public getHelper ( string $name ) : mixed
$name string Name
return mixed

getHelperManager() public method

Get helper manager object
public getHelperManager ( ) : Zend\View\HelperPluginManager
return Zend\View\HelperPluginManager

getName() public method

Get datatype name
public getName ( ) : string
return string

getProperty() public method

Return property model
public getProperty ( ) : Model
return Gc\Property\Model

getRequest() public method

Get request object
public getRequest ( ) : Zend\Http\PhpEnvironment\Request
return Zend\Http\PhpEnvironment\Request

getRouter() public method

Get router object
public getRouter ( ) : Zend\Mvc\Router\Http\TreeRouteStack
return Zend\Mvc\Router\Http\TreeRouteStack

getUploadUrl() public method

Upload dir path
public getUploadUrl ( ) : string
return string

getValue() public method

Return property value
public getValue ( ) : string
return string

load() abstract public method

Abstract function for load Editor
abstract public load ( ) : void
return void

render() public method

Render template
public render ( string $name, array $data = [] ) : string
$name string Name
$data array Data
return string

save() abstract public method

Abstract function for save Editor
abstract public save ( ) : void
return void

setConfig() public method

Set Configuration
public setConfig ( mixed $value ) : AbstractEditor
$value mixed Value
return AbstractEditor

setValue() public method

Set property value
public setValue ( mixed $value ) : AbstractEditor
$value mixed Value
return AbstractEditor

Property Details

$config protected_oe property

Configuration
protected mixed $config
return mixed

$datatype protected_oe property

Datatype
protected AbstractDatatype,Gc\Datatype $datatype
return Gc\Datatype\AbstractDatatype

$name protected_oe property

Get name of datatype
protected string $name
return string

$property protected_oe property

Property model
protected Model,Gc\Property $property
return Gc\Property\Model