示例#1
0
 /**
  * @param string      $id
  * @param string      $title
  * @param array       $flags An associative array of key => label bindings
  * @param array       $screens
  * @param string      $context
  * @param bool|string $priority
  * @param bool        $register
  */
 function __construct($id, $title, array $flags, array $screens = array(), $context = self::CONTEXT_ADVANCED, $priority = self::PRIORITY_DEFAULT, $register = true)
 {
     parent::__construct($id, $title, $screens, $context, $priority, $register);
     $this->checks = array();
     $this->flags = $flags;
     foreach ($flags as $key => $label) {
         $check = new Checkbox($key, $label, false);
         $this->checks[] = $check;
     }
 }
示例#2
0
文件: RWMB.php 项目: jmversteeg/jvwp
 function __construct($id, $title, array $screens = array(), $fields = array(), $context = self::CONTEXT_ADVANCED, $priority = self::PRIORITY_DEFAULT, $register = true)
 {
     parent::__construct($id, $title, $screens, $context, $priority, $register);
     $this->fields = $fields;
 }