public function setSelection(xPDOQuery $c) { $c = parent::setSelection($c); $key = $this->getProperty('subscribe_key'); $c->select(array("{$key}.subscriberid as subscriber_id", "{$key}.rank as rank")); return $c; }
public function afterIteration(array $list) { $list = parent::afterIteration($list); foreach ($list as $k => &$user) { $pub = $user['last_publication']; if ($pub == '') { continue; } if (strlen($pub) > 200) { $pub = substr($pub, 0, 200) . '...'; $pub = strip_tags($pub); } $user['last_publication'] = $pub; } return $list; }