getPrevalueEditor() public method

Retrieve prevalue editor
public getPrevalueEditor ( ) : AbstractPrevalueEditor
return Gc\Datatype\AbstractDatatype\AbstractPrevalueEditor
示例#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' => 'DatePickerTest', 'prevalue_value' => '', 'model' => 'DatePicker'));
     $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();
 }
示例#2
0
 /**
  * Test
  *
  * @return void
  */
 public function testGetPrevalueEditor()
 {
     $this->assertInstanceOf('Datatypes\\DatePicker\\PrevalueEditor', $this->object->getPrevalueEditor());
 }