Ejemplo n.º 1
0
 public static function prepGetList(&$pListHash)
 {
     // keep a copy of user_id for later...
     $userId = parent::getParameter($pListHash, 'user_id');
     parent::prepGetList($pListHash);
     if (empty($pListHash['query_string'])) {
         $pListHash['query_string'] = '';
     }
     $dynamicParams = array('page', 'max_records', 'sort_mode');
     foreach ($_GET as $key => $value) {
         if (!in_array($key, $dynamicParams)) {
             $pListHash['query_string'] .= "&{$key}={$value}";
         }
     }
     if (!empty($userId)) {
         // LibertyContent clobbers user_id for security reasons base on list_content. For Commerce, we want to loosen this up.
         $pListHash['user_id'] = $userId;
     }
 }