Datatypes\Textrich\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

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