/**
  * Loads selectlists for each artile in list if they exists
  * Returns true on success.
  *
  * @param string $sSelect SQL select string
  *
  * @return bool
  */
 public function selectString($sSelect)
 {
     startProfile("loadinglists");
     $oRes = parent::selectString($sSelect);
     stopProfile("loadinglists");
     return $oRes;
 }
Exemple #2
0
 /**
  * Returns user payment history list object
  *
  * @param string $sOXID object ID (default is null)
  *
  * @return object oxList with oxuserpayments objects
  */
 public function getUserPayments($sOXID = null)
 {
     if ($this->_oPayments === null) {
         if (!$sOXID) {
             $sOXID = $this->getId();
         }
         $sSelect = 'select * from oxuserpayments where oxuserid = ' . oxDb::getDb()->quote($sOXID) . ' ';
         $this->_oPayments = oxNew('oxList');
         $this->_oPayments->init('oxUserPayment');
         $this->_oPayments->selectString($sSelect);
     }
     return $this->_oPayments;
 }
 /**
  * @inheritdoc
  * In addition to the parent method, this method includes profiling.
  *
  * @param string $sql        SQL select statement or prepared statement
  * @param array  $parameters Parameters to be used in a prepared statement
  */
 public function selectString($sql, array $parameters = array())
 {
     startProfile("loadinglists");
     parent::selectString($sql, $parameters);
     stopProfile("loadinglists");
 }