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

getEditor() public méthode

Retrieve editor
public getEditor ( Model $property ) : AbstractEditor
$property Gc\Property\Model Property
Résultat 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

Exemple #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