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

コード例 #1
0
ファイル: DatatypeTest.php プロジェクト: gotcms/gotcms
 /**
  * Test
  *
  * @return void
  */
 public function testGetEditor()
 {
     $this->assertInstanceOf('Datatypes\\Upload\\Editor', $this->object->getEditor($this->property));
 }
All Usage Examples Of Datatypes\Upload\Datatype::getEditor