Beispiel #1
0
 /**
  * Filter out Pages that don't match the selector. 
  * 
  * This is applicable to and destructive to the WireArray.
  *
  * @param string|Selectors $selectors AttributeSelector string to use as the filter.
  * @param bool $not Make this a "not" filter? (default is false)
  * @return WireArray reference to current [filtered] instance
  *
  */
 protected function filterData($selectors, $not = false)
 {
     if (is_string($selectors) && $selectors[0] === '/') {
         $selectors = "path={$selectors}";
     }
     return parent::filterData($selectors, $not);
 }
Beispiel #2
0
 protected function filterData($selectors, $not = false)
 {
     $this->preload();
     return parent::filterData($selectors, $not);
 }