Datatypes\TinyUrl\Datatype::getPrevalueEditor PHP Метод

getPrevalueEditor() публичный Метод

Retrieve prevalue editor
public getPrevalueEditor ( ) : AbstractPrevalueEditor
Результат Gc\Datatype\AbstractDatatype\AbstractPrevalueEditor
    public function getPrevalueEditor()
    {
        if ($this->prevalueEditor === null) {
            $this->prevalueEditor = new PrevalueEditor($this);
        }
        return $this->prevalueEditor;
    }

Usage Example

Пример #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' => 'TinyUrlTest', 'prevalue_value' => '', 'model' => 'TinyUrl'));
     $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->load($this->datatype);
     $this->object = $datatype->getPrevalueEditor();
 }
All Usage Examples Of Datatypes\TinyUrl\Datatype::getPrevalueEditor