public function valid($id)
    {
      $valid = FALSE;

      foreach (self::$prefixes as $prefix) {
        $m = array();

        preg_match("/$prefix-.*/", $id, $m);

        if (sizeof($m)) {
          $valid = TRUE;
        }
      }

      return $valid;
    }
public function valid($id)
    {
      $valid = FALSE;

      foreach (self::$prefixes as $prefix) {
        $m = array();

        preg_match("/$prefix-.*/", $id, $m);

        if (sizeof($m)) {
          $valid = TRUE;
        }
      }

      return $valid;
    }
public function valid ( $ id ) { $ valid = FALSE ; foreach ( self :: $ prefixes as $ prefix ) { $ m = array ( ) ; preg_match ( "/$prefix-.*/" , $ id , $ m ) ; if ( sizeof ( $ m ) ) { $ valid = TRUE ; } } return $ valid ; }
check if the supplied
id is valid

@param id: valid Catapult Id
check if the supplied id is valid