Source

trekel / src / php / Trekel / Node / Attribute / Exists.php

<?php

class Trekel_Node_Attribute_Exists extends Trekel_Node_Attribute {
  public function reduce ($node, $idx, $total) {
    $this->initMatches();
    $data = $this->getData($node);
    if ($data) {
      $this->matchNode($node);
    }
    return $this->getMatches();
  }
}// end Trekel_Node_Attribute_Exists