Example #1
0
 public function maxLenght($max_lenght)
 {
     if (!is_null($max_lenght)) {
         if ($max_lenght < min_results()) {
             $max_lenght = show_text();
         }
     }
     return $max_lenght;
 }
Example #2
0
 public function limit_text($limit, $max)
 {
     if ('on' == $limit) {
         if (empty($max) || $max < min_results()) {
             $max = show_text();
             //default lenght
         }
     } else {
         $max = null;
     }
     return $max;
 }