PHP 클래스 Gc\Datatype\AbstractDatatype

상속: extends Gc\Db\AbstractTable
파일 보기 프로젝트 열기: gotcms/gotcms 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$config mixed Configuration
$configHasChanged mixed Check if config changed
$datatypesList array Datatypes list
$editor Gc\Datatype\AbstractDatatype\AbstractEditor Editor
$helperManager Zend\View\HelperPluginManager Request
$name string Table name
$prevalueEditor Gc\Datatype\AbstractDatatype\AbstractPrevalueEditor Prevalue editor
$property Gc\Property\Model Property
$renderer Gc\View\Renderer Renderer
$request Zend\Http\PhpEnvironment\Request Request
$router Zend\Mvc\Router\Http\TreeRouteStack Request

공개 메소드들

메소드 설명
addPath ( string $dir ) : AbstractDatatype Add path in Zend\View\Resolver\TemplatePathStack
getConfig ( ) : array Return configuration
getDatatypesList ( ) : array Get datatypes list object
getDocument ( ) : Model Retrieve document
getEditor ( Model $property ) : AbstractEditor Get Datatype Editor
getHelper ( string $name ) : object Get a helper by name
getHelperManager ( ) : Zend\View\HelperPluginManager Get helper manager
getInfos ( ) : false | string Return datatype informations
getName ( ) : string Get datatype name, construct with datatype name and property_id
getPrevalueEditor ( ) : AbstractPrevalueEditor Get Datatype Prevalue editor
getProperty ( ) : Model Get Property Model
getRequest ( ) : Zend\Http\PhpEnvironment\Request Get request object
getRouter ( ) : Zend\Mvc\Router\Http\TreeRouteStack Get route object
getUploadUrl ( integer $propertyId ) : string Get upload url path
load ( Model $datatype = null, integer $documentId = null ) : false | null Load Datatype
render ( string $name, array $data = [] ) : string Render template
setConfig ( mixed $value ) : AbstractDatatype Set configuration
setDatatypesList ( array $array ) : AbstractDatatype Set datatypes list object
setHelperManager ( Zend\View\HelperPluginManager $helperManager ) : AbstractDatatype Set helper manager
setProperty ( Model $property ) : AbstractDatatype Set Property Model
setRequest ( Zend\Http\PhpEnvironment\Request $request ) : AbstractDatatype Set request object
setRouter ( Zend\Mvc\Router\Http\TreeRouteStack $router ) : AbstractDatatype Set route object

메소드 상세

addPath() 공개 메소드

Add path in Zend\View\Resolver\TemplatePathStack
public addPath ( string $dir ) : AbstractDatatype
$dir string Directory
리턴 AbstractDatatype

getConfig() 공개 메소드

Return configuration
public getConfig ( ) : array
리턴 array

getDatatypesList() 공개 메소드

Get datatypes list object
public getDatatypesList ( ) : array
리턴 array

getDocument() 공개 메소드

Retrieve document
public getDocument ( ) : Model
리턴 Gc\Document\Model

getEditor() 추상적인 공개 메소드

Get Datatype Editor
abstract public getEditor ( Model $property ) : AbstractEditor
$property Gc\Property\Model Property
리턴 Gc\Datatype\AbstractDatatype\AbstractEditor

getHelper() 공개 메소드

Get a helper by name
public getHelper ( string $name ) : object
$name string Name
리턴 object

getHelperManager() 공개 메소드

Get helper manager
public getHelperManager ( ) : Zend\View\HelperPluginManager
리턴 Zend\View\HelperPluginManager

getInfos() 공개 메소드

Return datatype informations
public getInfos ( ) : false | string
리턴 false | string

getName() 공개 메소드

Get datatype name, construct with datatype name and property_id
public getName ( ) : string
리턴 string

getPrevalueEditor() 추상적인 공개 메소드

Get Datatype Prevalue editor
abstract public getPrevalueEditor ( ) : AbstractPrevalueEditor
리턴 Gc\Datatype\AbstractDatatype\AbstractPrevalueEditor

getProperty() 공개 메소드

Get Property Model
public getProperty ( ) : Model
리턴 Gc\Property\Model

getRequest() 공개 메소드

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

getRouter() 공개 메소드

Get route object
public getRouter ( ) : Zend\Mvc\Router\Http\TreeRouteStack
리턴 Zend\Mvc\Router\Http\TreeRouteStack

getUploadUrl() 공개 메소드

Get upload url path
public getUploadUrl ( integer $propertyId ) : string
$propertyId integer Property id
리턴 string

load() 공개 메소드

Load Datatype
public load ( Model $datatype = null, integer $documentId = null ) : false | null
$datatype Model Datatype
$documentId integer Document id
리턴 false | null

render() 공개 메소드

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

setConfig() 공개 메소드

Set configuration
public setConfig ( mixed $value ) : AbstractDatatype
$value mixed Value
리턴 AbstractDatatype

setDatatypesList() 공개 메소드

Set datatypes list object
public setDatatypesList ( array $array ) : AbstractDatatype
$array array Array of datatypes
리턴 AbstractDatatype

setHelperManager() 공개 메소드

Set helper manager
public setHelperManager ( Zend\View\HelperPluginManager $helperManager ) : AbstractDatatype
$helperManager Zend\View\HelperPluginManager Helper manager
리턴 AbstractDatatype

setProperty() 공개 메소드

Set Property Model
public setProperty ( Model $property ) : AbstractDatatype
$property Gc\Property\Model Property
리턴 AbstractDatatype

setRequest() 공개 메소드

Set request object
public setRequest ( Zend\Http\PhpEnvironment\Request $request ) : AbstractDatatype
$request Zend\Http\PhpEnvironment\Request Request
리턴 AbstractDatatype

setRouter() 공개 메소드

Set route object
public setRouter ( Zend\Mvc\Router\Http\TreeRouteStack $router ) : AbstractDatatype
$router Zend\Mvc\Router\Http\TreeRouteStack Router
리턴 AbstractDatatype

프로퍼티 상세

$config 보호되어 있는 프로퍼티

Configuration
protected mixed $config
리턴 mixed

$configHasChanged 보호되어 있는 프로퍼티

Check if config changed
protected mixed $configHasChanged
리턴 mixed

$datatypesList 보호되어 있는 프로퍼티

Datatypes list
protected array $datatypesList
리턴 array

$editor 보호되어 있는 프로퍼티

Editor
protected AbstractEditor,Gc\Datatype\AbstractDatatype $editor
리턴 Gc\Datatype\AbstractDatatype\AbstractEditor

$helperManager 보호되어 있는 프로퍼티

Request
protected HelperPluginManager,Zend\View $helperManager
리턴 Zend\View\HelperPluginManager

$name 보호되어 있는 프로퍼티

Table name
protected string $name
리턴 string

$prevalueEditor 보호되어 있는 프로퍼티

Prevalue editor
protected AbstractPrevalueEditor,Gc\Datatype\AbstractDatatype $prevalueEditor
리턴 Gc\Datatype\AbstractDatatype\AbstractPrevalueEditor

$property 보호되어 있는 프로퍼티

Property
protected Model,Gc\Property $property
리턴 Gc\Property\Model

$renderer 보호되어 있는 프로퍼티

Renderer
protected Renderer,Gc\View $renderer
리턴 Gc\View\Renderer

$request 보호되어 있는 프로퍼티

Request
protected Request,Zend\Http\PhpEnvironment $request
리턴 Zend\Http\PhpEnvironment\Request

$router 보호되어 있는 프로퍼티

Request
protected TreeRouteStack,Zend\Mvc\Router\Http $router
리턴 Zend\Mvc\Router\Http\TreeRouteStack