protected function _find() { if (!isset($this->_toasterOptions['containers'])) { return null; } $containers = $this->_toasterOptions['containers']; $containerKey = md5(implode('-', array($this->_name, $this->_pageId === null ? 0 : $this->_pageId, $this->_type))); if (!array_key_exists($containerKey, $containers)) { return null; } $container = $containers[$containerKey]; if (($container['page_id'] == $this->_pageId || $container['page_id'] === null) && $container['container_type'] == $this->_type) { $widget = new Application_Model_Models_Container(); $widget->setName($this->_name)->setOptions($container); return $widget; } return null; }