public function onBeforeRender() { parent::onBeforeRender(); if ($this->statusCmp !== null) { if (method_exists($this->statusCmp, "focusOnInput")) { $this->statusCmp->focusOnInput($this->focused); } $this->addComponent('status', $this->statusCmp); } }
public function __construct($feedAutoId, $feedType, $feedId, $actionVisibility = null) { parent::__construct($feedAutoId, $feedType, $feedId, $actionVisibility); $tpl = OW::getPluginManager()->getPlugin("newsfeed")->getMobileCmpViewDir() . "update_status.html"; $this->setTemplate($tpl); }