public getObject ( ) : |
||
return |
public function getObject()
{
if ($this->object instanceof Document || $this->object instanceof Asset) {
return $this->object;
} else {
if ($this->setObjectFromId()) {
return $this->object;
}
}
return false;
}