Esempio n. 1
0
 /**
  *  Constructor.
  *
  *  @param object Criteria The Propel criteria for the query.
  *  @param string The name of the Peer class to run the query against.
  *  @param string The name of the Peer method to use for the select. Defaults to doSelect.
  */
 function __construct($criteria, $peerName, $peerSelectMethod = 'doSelect')
 {
     $this->criteria = $criteria;
     $this->peerName = $peerName;
     $this->peerSelectMethod = $peerSelectMethod;
     // There is a bug in call_user_func that causes PHP to crash if the peer being called isn't already loaded.
     if (!class_exists($this->peerName)) {
         WFWebApplication::autoload($this->peerName);
     }
 }