示例#1
0
 public function getIntegrationFormElements(HTML_QuickForm2_Container $group)
 {
     parent::getIntegrationFormElements($group);
     /*
             $options = $this->getLevels();
             $group->addSelect('level', array(), array('options'=>$options))->setLabel('Wordpress Level');
     */
 }
示例#2
0
 public function getIntegrationFormElements(HTML_QuickForm2_Container $group)
 {
     parent::getIntegrationFormElements($group);
     if ($this->getConfig('buddy_press')) {
         $groups = $this->getBuddyPressGroups();
         $available_groups = $this->getConfig('buddy_press_groups');
         foreach ($groups as $k => $v) {
             if (!in_array($k, $available_groups)) {
                 unset($groups[$k]);
             }
         }
         $group->addSelect('buddy_press_group', array(), array('options' => array('' => '-- Select Group -- ') + $groups))->setLabel('BuddyPress Group');
     }
     if ($this->getConfig('wp_courseware')) {
         $group->addSelect('wp_courseware_group', array(), array('options' => array('' => '-- Select Course --') + $this->getWpCoursewareGroups()))->setLabel('WpCourseware Courses');
     }
     if ($this->getConfig('network') && $this->getConfig('network_create_blog')) {
         $group->addAdvCheckbox('create_blog')->setLabel('Create blog for user');
     }
     /*
      $options = $this->getLevels();
      $group->addSelect('level', array(), array('options'=>$options))->setLabel('Wordpress Level');
     */
 }
示例#3
0
文件: joomla.php 项目: grlf/eyedock
 public function getIntegrationFormElements(HTML_QuickForm2_Container $group)
 {
     parent::getIntegrationFormElements($group);
     if ($this->getConfig('jomsocial')) {
         $group->addSelect('jomsocial_groups', array(), array('options' => array('' => '-- Select Group --') + $this->getJomsocialGroups()))->setLabel('JomSocial Group');
     }
     if ($this->getConfig('jacl')) {
         $groups = $this->getManagedUserGroups();
         $options = array();
         foreach ($groups as $g) {
             $options[$g->getId()] = $g->getTitle();
         }
         $group->addSelect('jacl_groups', array(), array('options' => array('' => '-- Select Group --') + $options))->setLabel('JACL Group');
     }
 }