Datatypes\Mixed\Datatype::getPrevalueEditor PHP Méthode

getPrevalueEditor() public méthode

Retrieve prevalue editor
public getPrevalueEditor ( ) : AbstractPrevalueEditor
Résultat Gc\Datatype\AbstractDatatype\AbstractPrevalueEditor
    public function getPrevalueEditor()
    {
        if ($this->prevalueEditor === null) {
            $this->prevalueEditor = new PrevalueEditor($this);
        }
        return $this->prevalueEditor;
    }

Usage Example

Exemple #1
0
 /**
  * Sets up the fixture, for example, opens a network connection.
  * This method is called before a test is executed.
  *
  * @return void
  */
 protected function setUp()
 {
     $this->datatype = DatatypeModel::fromArray(array('name' => 'MixedTest', 'prevalue_value' => 'a:1:{s:9:"datatypes";a:1:{i:0;a:3:{s:4:"name";' . 's:10:"Textstring";s:5:"label";s:4:"Test";s:6:"config";' . 'a:1:{s:6:"length";s:0:"";}}}}', 'model' => 'Mixed'));
     $this->datatype->save();
     $datatype = new Datatype();
     $application = Registry::get('Application');
     $datatype->setRequest($application->getServiceManager()->get('Request'));
     $datatype->setRouter($application->getServiceManager()->get('Router'));
     $datatype->setHelperManager($application->getServiceManager()->get('viewhelpermanager'));
     $datatype->setDatatypesList($application->getServiceManager()->get('DatatypesList'));
     $datatype->load($this->datatype);
     $this->object = $datatype->getPrevalueEditor();
 }
All Usage Examples Of Datatypes\Mixed\Datatype::getPrevalueEditor