Ejemplo n.º 1
0
 function test()
 {
     App::import('Vendor', 'StringMatch', false, null, 'stringmatch.php');
     $string1 = strtolower("alejandro");
     $string2 = strtolower("jose");
     $length1 = strlen($string1);
     $length2 = strlen($string2);
     $limit = 0.4;
     $comparison = new StringMatch();
     $resultado = $comparison->fstrcmp($string1, $length1, $string2, $length2, $limit);
 }
Ejemplo n.º 2
0
 public function __construct($node, $parent)
 {
     parent::__construct($node, $parent);
     self::$possible_attributes = array_merge(parent::$possible_attributes, self::$possible_attributes);
     self::$required_attributes = array_merge(parent::$required_attributes, self::$required_attributes);
     self::$possible_children = array_merge(parent::$possible_children, self::$possible_children);
     self::$required_children = array_merge(parent::$required_children, self::$required_children);
 }