コード例 #1
0
ファイル: Databased.php プロジェクト: alexanderTsig/arabic
 public function __construct(Am_Di $di, array $config)
 {
     parent::__construct($di, $config);
     if ($this->_tableClass === null) {
         $this->_tableClass = get_class($this) . "_Table";
     }
 }
コード例 #2
0
ファイル: network.php プロジェクト: alexanderTsig/arabic
 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);
 }
コード例 #3
0
ファイル: htpasswd.php プロジェクト: alexanderTsig/arabic
 public function init()
 {
     parent::init();
     $this->htpasswd = DATA_DIR . '/.htpasswd';
     $this->htgroup = DATA_DIR . '/.htgroup';
 }
コード例 #4
0
 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);
 }