PHP Class Devise\Pages\Viewvars\DataCrawler

'someVar' => ['Some\Namespaced\Class.methodName' => ['value' => 'asfd', 'params.pageId', 'input']]
Exibir arquivo Open project: devisephp/cms

Public Methods

Method Description
extract ( array $data, string $dotPath ) : mixed Gets the value of a param by it's name

Private Methods

Method Description
followDataPath ( array $data, string $path, integer $index ) : mixed Follows an array recursively to retrieve data from view objects
getUsingString ( object $data, string $propertyName ) : mixed Gets a property from an object or an array using a string
propertyAvailable ( object $object, string $name ) : mixed Tells us if this property is available on this object

Method Details

extract() public method

Gets the value of a param by it's name
public extract ( array $data, string $dotPath ) : mixed
$data array
$dotPath string
return mixed