Exemple #1
0
 public function friendlyName($fieldName)
 {
     if ($fieldName == "pageCollections") {
         return "Page Collections";
     } else {
         return parent::friendlyName($fieldName);
     }
 }
 public function friendlyName($fieldName)
 {
     // override if you want to to have a more human-readble name for one or more fields
     if ($fieldName == 'categorytypeid') {
         return 'Category Type';
     } elseif ($fieldName == 'seq') {
         return 'Sequence';
     } else {
         return parent::friendlyName($fieldName);
     }
 }
 public function friendlyName($fieldName)
 {
     $name = parent::friendlyName($fieldName);
     switch ($fieldName) {
         case 'imageurl':
             $name = "Image URL";
             break;
         case 'shortdesc':
             $name = "Short Description";
             break;
         case 'categoryid':
             $name = "Category";
             break;
         case 'url':
             $name = "Website URL";
             break;
     }
     return $name;
 }