public function __construct() { Auth::requireAdmin(); if (!$this->noun) { $this->noun = preg_replace('/^.+\\\\/', '', $this->entity); } if (!$this->nounPlural) { $this->nounPlural = $this->noun . 's'; } if (!$this->displayName) { $this->displayName = 'Manage ' . $this->nounPlural; } parent::__construct(); }
public function __construct() { parent::__construct(); $this->fields = array('order' => array('label' => 'Display Order', 'type' => 'number', 'attr' => array('min' => 0, 'required' => ''), 'column' => 'Display Order'), 'id' => array('label' => 'Field Key<br> (must be unique within question) <p style="color:red">WARNING!<br> Changing the key after any survey response is collected<br> will make the previous fields not being recognized</p>', 'type' => 'text', 'attr' => array('required' => ''), 'column' => 'Field Key'), 'description' => array('label' => 'Description (html supported)', 'type' => 'textarea'), 'type' => array('label' => 'Question type <p style="color:#f50">WARNING!<br> Changing the question type after any survey response<br> is collected may result in data not displayed<br> properly.</p>', 'type' => 'select', 'attr' => array('required' => ''), 'values' => array('text' => 'Text', 'textarea' => 'Paragraph', 'number' => 'Number (integer only)', 'datetime-local' => 'Date time', 'checkbox' => 'Yes No (checkbox)', 'select' => 'Choices (pull-down menu)', 'radio' => 'Choices (radio button)'), 'column' => 'Type'), 'options' => array('label' => 'Choices (if applicable, one line per item) <p style="color:#f50">WARNING!<br> Changing the choices after any survey response is<br> collected may result in data not displayed properly.</p>', 'type' => 'textarea'), 'is_required' => array('label' => 'Required?', 'type' => 'checkbox', 'column' => 'Required?')); }
public function __construct() { parent::__construct(); $this->fields = array('id' => array('column' => 'ID'), 'title' => array('label' => 'Title', 'type' => 'text', 'column' => 'Title'), 'is_published' => array('label' => 'Published?', 'type' => 'checkbox', 'column' => 'Published?'), 'response' => array('column' => 'View Response')); }
public function __construct() { parent::__construct(); $this->fields = array('id' => array('column' => 'ID'), 'title' => array('label' => 'Title', 'type' => 'text', 'column' => 'Title')); }
public function __construct() { parent::__construct(); $this->item_fields = array('title' => array('label' => 'Title', 'type' => 'text', 'column' => 'title'), 'content' => array('label' => 'Content', 'type' => 'textarea', 'column' => 'Content'), 'writer_id' => array('column' => 'Writer', 'data_source' => array($this, 'get_writer')), 'time' => array('label' => 'Time', 'column' => 'Time')); }
public function __construct() { parent::__construct(); $this->fields = array('id' => array('column' => 'No.'), 'title' => array('label' => 'Title', 'type' => 'text', 'column' => 'Title'), 'content' => array('label' => 'Content', 'type' => 'textarea', 'column' => 'Content'), 'receiver_id' => array('label' => 'Receiver', 'type' => 'select', 'column' => 'Title', 'values_source' => array($this, 'get_receiver'))); }
public function __construct() { parent::__construct(); $this->load->model('DBMember'); $this->fields = array('id' => array('column' => 'ID'), 'topic' => array('label' => 'Conference topic', 'type' => 'text', 'column' => 'Topic', 'attr' => array('required' => '')), 'info' => array('label' => 'Conference Description', 'type' => 'textarea'), 'start_time' => array('label' => 'Start time', 'type' => 'datetime-local', 'column' => 'Start', 'attr' => array('required' => '')), 'end_time' => array('label' => 'End time', 'type' => 'datetime-local', 'column' => 'End', 'attr' => array('required' => '')), 'speaker' => array('label' => 'Speaker', 'type' => 'select', 'column' => 'Speaker', 'values_source' => array($this, 'get_speakers'), 'attr' => array('required' => ''), 'data_source' => array($this, 'get_speaker')), 'venue' => array('label' => 'Venue', 'type' => 'text', 'column' => 'Venue'), 'venue_lat' => array('label' => 'Location (lat)', 'type' => 'text', 'attr' => array('required' => '')), 'venue_lng' => array('label' => 'Location (Lng)', 'type' => 'text', 'attr' => array('required' => '')), 'venue_map' => array('label' => 'Pick the location of the venue on the map<br>or type it in the box above', 'type' => 'map', 'lat' => 'venue_lat', 'lng' => 'venue_lng', 'attr' => array('style' => 'width: 450px; height: 300px'))); }