Ejemplo n.º 1
0
 /**
  * Sets the PIDs of the system folders that contain the records.
  *
  * @param string $sourcePagePids
  *        comma-separated list of PIDs of the system folders with the records;
  *        must not be empty; need not be safeguarded against SQL injection
  * @param int $recursionDepth
  *        recursion depth, must be >= 0
  *
  * @return void
  */
 public function setSourcePages($sourcePagePids, $recursionDepth = 0)
 {
     if (!preg_match('/^([\\d+,] *)*\\d+$/', $sourcePagePids)) {
         unset($this->whereClauseParts['pages']);
         return;
     }
     $recursivePidList = tx_oelib_db::createRecursivePageList($sourcePagePids, $recursionDepth);
     $this->whereClauseParts['pages'] = $this->tableName . '.pid IN (' . $recursivePidList . ')';
 }