Datatypes\Mixed\Datatype::getEditor PHP Method

getEditor() public method

Retrieve editor
public getEditor ( Model $property ) : AbstractEditor
$property Gc\Property\Model Property
return Gc\Datatype\AbstractDatatype\AbstractEditor
    public function getEditor(PropertyModel $property)
    {
        $this->setProperty($property);
        if ($this->editor === null) {
            $this->editor = new Editor($this);
        }
        return $this->editor;
    }

Usage Example

Esempio n. 1
0
 /**
  * Test
  *
  * @return void
  */
 public function testGetEditor()
 {
     $this->assertInstanceOf('Datatypes\\Mixed\\Editor', $this->object->getEditor($this->property));
 }
All Usage Examples Of Datatypes\Mixed\Datatype::getEditor