예제 #1
0
파일: Vars.php 프로젝트: techart/tao
 /**
  * @param mixed $value
  */
 static function validate_parm($value)
 {
     if (!is_string($value)) {
         return $value;
     }
     while ($m = Core_Regexps::match_with_results('{^var:(.+)$}', trim($value))) {
         $value = CMS_Vars::get($m[1]);
     }
     return $value;
 }