public function __construct(Am_Di $di, array $config) { parent::__construct($di, $config); if ($this->_tableClass === null) { $this->_tableClass = get_class($this) . "_Table"; } }
function getIntegrationFormElements(HTML_QuickForm2_Container $container) { $container->addSelect('blog_id', '', array('options' => $this->getBlogs()))->setLabel(array('Blog where user should be added', 'By default user will be added to main blog with the same permissions')); $groups = $this->getParentPlugin()->getManagedUserGroups(); $options = array(); foreach ($groups as $g) { $options[$g->getId()] = $g->getTitle(); } $container->addSelect('gr', array(), array('options' => $options))->setLabel($this->getTitle() . ' usergroup'); parent::getIntegrationFormElements($container); }
public function init() { parent::init(); $this->htpasswd = DATA_DIR . '/.htpasswd'; $this->htgroup = DATA_DIR . '/.htgroup'; }
public function renderResourceTitle(Am_Record $r) { try { $pl = Am_Di::getInstance()->plugins_protect->get($r->plugin); } catch (Am_Exception_InternalError $e) { $pl = null; } $config = unserialize($r->vars); $s = $pl ? $pl->getIntegrationSettingDescription($config) : Am_Protect_Abstract::static_getIntegrationDescription($config); return $this->renderTd($s); }