예제 #1
0
파일: ACL.php 프로젝트: h3rb/page
 public static function has($haystack, $needle, $delim = ',')
 {
     return tagged($haystack, $needle, $delim);
 }
예제 #2
0
파일: utility.php 프로젝트: h3rb/page
 function filtered_tags($tags, $supported, $delim = ',')
 {
     $out = array();
     $words = words($tags, $delim);
     foreach ($words as $w) {
         if (tagged($supported, $w)) {
             $out[] = $w;
         }
     }
     return implode($delim, $out);
 }