Exemple #1
0
 /**
  * function to get field value
  *
  * @param   string  $label   stores label
  *
  * @return bool|String
  */
 public function getFieldValue($label)
 {
     $result = false;
     if (strtolower($label) === 'menu item type') {
         $result = $this->getMenuItemType($label);
     } elseif (in_array(strtolower($label), array('article', 'contact', 'newsfeed', 'weblink'))) {
         $result = $this->getRequestVariable($label);
     } elseif (strtolower($label) == 'category') {
         $result = parent::getSelectValues(array('tab' => 'Details', 'id' => 'jform_request_id'));
     } else {
         $result = parent::getFieldValue($label);
     }
     return $result;
 }