Exemplo n.º 1
0
 public function __construct($f = array(), $privileged = false)
 {
     $this->id = new FormText(array('value' => $f['id']));
     $this->name = new FormText(array('maxlength' => 30, 'size' => 50));
     $this->slug = new FormText(array('maxlength' => 30, 'size' => 50));
     $this->lock_state = new FormCheckbox(array('options' => array(array(1, 'Move Lock'), array(2, 'Remove Lock'), array(4, 'Name Lock')), 'selected' => MyValues::parse_my_bits($f['lock_state']), 'hasBlank' => false));
     $this->targets = new FormSelect(array('options' => MyValues::targets(), 'size' => 10, 'multiple' => true, 'selected' => MyTab::targets($f['id']), 'hasBlank' => false));
     unset($f['lock_state']);
     parent::__construct($f, $privileged);
 }
 public function __construct($f = array(), $privileged = false)
 {
     $this->id = new FormText(array('value' => $f['id']));
     $this->name = new FormText(array('maxlength' => 100, 'size' => 50));
     $this->slug = new FormText(array('maxlength' => 100, 'size' => 50));
     $this->content_text = new FormTextarea(array('rows' => 5, 'cols' => 43));
     $this->description = new FormTextarea(array('rows' => 5, 'cols' => 43));
     $this->content_url = new FormText(array('maxlength' => 150, 'size' => 50));
     $this->targets = new FormSelect(array('options' => MyValues::targets(), 'size' => 10, 'multiple' => true, 'selected' => MyChannel::targets($f['id']), 'hasBlank' => false));
     parent::__construct($f, $privileged);
 }