PHP 클래스 Devise\Pages\Interpreter\DeviseTag

파일 보기 프로젝트 열기: devisephp/cms 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$alternateTarget string Alternate target for live updates
$bindingType string This could be a model, field or collection binding type
$category string Category name provides us with a dropdown in the sidebar for a group.
$chain string The chain array of string value pairs for a model or attribute
$collection string Collection name
$collectionName string The human name of the collection
$defaults string Default values to set on this devise tag
$group string Group name of the tag. We can group together different nodes.
$humanName string Human name of the devise tag
$id string Identifier of the devise tag
$key string Key name
$type string Type of the devise tag (text, image, etc)
$value string String value of the entire matched string that was regex out. This parameters above are extracted from this value

공개 메소드들

메소드 설명
__construct ( string $str, $parsed = null ) Create a new devise tag
__toString ( ) : string Convert this object to a string
toArray ( $escaped = '', $hasKeys = false ) : array Converts our devise tag into a giant ass array

보호된 메소드들

메소드 설명
arrayAsString ( array $array ) : string Converts this array to a string version that we can read in a blade php view later
createChainArray ( string $key ) : string We can't assume that the model will just be a single variable it might be nested inside of another variable such as $page->someModel
extractBindingType ( [type] $collection, [type] $key ) : [type] [extractBindingType description]
extractKeyAndCollection ( string $str ) : array Extracts out the key and collection from a string
extractParametersForCollection ( string $key, array $params ) : void Extracts out parameters for collection. They are different because collections have a collection name in the place where a group name should be. So this throws everything off by one
extractParametersForVariable ( string $key, array $params ) : void Extracts out parameters for a variable binding type which is essentially a model or model attribute type
extractParametersFromParsedStr ( $params ) : void Extracts out the parameters from a parsed devise string
extractParametersFromUnparsedCreatorStr ( string $params ) : void Extracts out the parameters from an unparsed devise create model
extractParametersFromUnparsedStr ( $params ) : void Extracts out the parameters from an unparsed devise string
humanize ( string $str ) : string Create a human version name of this string
isStringParsed ( string $str ) : boolean Checks the string to see if it is parsed or not
stripquotes ( string $str ) : string Strips off the quotes from the beginning and end of string

메소드 상세

__construct() 공개 메소드

Create a new devise tag
public __construct ( string $str, $parsed = null )
$str string

__toString() 공개 메소드

Convert this object to a string
public __toString ( ) : string
리턴 string

arrayAsString() 보호된 메소드

Converts this array to a string version that we can read in a blade php view later
protected arrayAsString ( array $array ) : string
$array array
리턴 string

createChainArray() 보호된 메소드

Furthermore we cannot assume that this is a model, we will have to check to ensure it is a Eloquent model later when the code is actually running. At this point we are just passing variables, the check actually happens in the devise_model method which is an alias for dvsPageData->addModel.
protected createChainArray ( string $key ) : string
$key string
리턴 string

extractBindingType() 보호된 메소드

[extractBindingType description]
protected extractBindingType ( [type] $collection, [type] $key ) : [type]
$collection [type]
$key [type]
리턴 [type]

extractKeyAndCollection() 보호된 메소드

Extracts out the key and collection from a string
protected extractKeyAndCollection ( string $str ) : array
$str string
리턴 array

extractParametersForCollection() 보호된 메소드

Extracts out parameters for collection. They are different because collections have a collection name in the place where a group name should be. So this throws everything off by one
protected extractParametersForCollection ( string $key, array $params ) : void
$key string
$params array
리턴 void

extractParametersForVariable() 보호된 메소드

Extracts out parameters for a variable binding type which is essentially a model or model attribute type
protected extractParametersForVariable ( string $key, array $params ) : void
$key string
$params array
리턴 void

extractParametersFromParsedStr() 보호된 메소드

Extracts out the parameters from a parsed devise string
protected extractParametersFromParsedStr ( $params ) : void
리턴 void

extractParametersFromUnparsedCreatorStr() 보호된 메소드

Extracts out the parameters from an unparsed devise create model
protected extractParametersFromUnparsedCreatorStr ( string $params ) : void
$params string
리턴 void

extractParametersFromUnparsedStr() 보호된 메소드

Extracts out the parameters from an unparsed devise string
protected extractParametersFromUnparsedStr ( $params ) : void
리턴 void

humanize() 보호된 메소드

Create a human version name of this string
protected humanize ( string $str ) : string
$str string
리턴 string

isStringParsed() 보호된 메소드

Checks the string to see if it is parsed or not
protected isStringParsed ( string $str ) : boolean
$str string
리턴 boolean

stripquotes() 보호된 메소드

Strips off the quotes from the beginning and end of string
protected stripquotes ( string $str ) : string
$str string
리턴 string

toArray() 공개 메소드

Converts our devise tag into a giant ass array
public toArray ( $escaped = '', $hasKeys = false ) : array
리턴 array

프로퍼티 상세

$alternateTarget 공개적으로 프로퍼티

Alternate target for live updates
public string $alternateTarget
리턴 string

$bindingType 공개적으로 프로퍼티

This could be a model, field or collection binding type
public string $bindingType
리턴 string

$category 공개적으로 프로퍼티

Category name provides us with a dropdown in the sidebar for a group.
public string $category
리턴 string

$chain 공개적으로 프로퍼티

The chain array of string value pairs for a model or attribute
public string $chain
리턴 string

$collection 공개적으로 프로퍼티

Collection name
public string $collection
리턴 string

$collectionName 공개적으로 프로퍼티

The human name of the collection
public string $collectionName
리턴 string

$defaults 공개적으로 프로퍼티

Default values to set on this devise tag
public string $defaults
리턴 string

$group 공개적으로 프로퍼티

Group name of the tag. We can group together different nodes.
public string $group
리턴 string

$humanName 공개적으로 프로퍼티

Human name of the devise tag
public string $humanName
리턴 string

$id 공개적으로 프로퍼티

Identifier of the devise tag
public string $id
리턴 string

$key 공개적으로 프로퍼티

Key name
public string $key
리턴 string

$type 공개적으로 프로퍼티

Type of the devise tag (text, image, etc)
public string $type
리턴 string

$value 공개적으로 프로퍼티

String value of the entire matched string that was regex out. This parameters above are extracted from this value
public string $value
리턴 string