public function maxLenght($max_lenght) { if (!is_null($max_lenght)) { if ($max_lenght < min_results()) { $max_lenght = show_text(); } } return $max_lenght; }
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; }