Ejemplo n.º 1
0
 public function unsubscribeAction()
 {
     $email = base64_decode($this->dispatcher->getParam('email'));
     $Newsletter = new \WH\Model\User();
     $Newsletter->setNewsletter();
     $Newsletter->setEmail($email);
     $Newsletter->getUnsubNewsletterResults();
 }
Ejemplo n.º 2
0
 private function getauthorpost($authorid, $start, $limit)
 {
     $Profile = new \WH\Model\User();
     $Profile->setId($authorid);
     $Profile->setStart($start);
     $Profile->setLimit($limit);
     $Profile->setPostParams();
     try {
         $profilepost = $Profile->getPostsResults();
         foreach ($profilepost['results'] as $key => $entity) {
             if ($entity['cover_image']) {
                 if (substr($entity['cover_image'], 0, 4) != 'http') {
                     $profilepost['results'][$key]['cover_image'] = $this->config->application->imgbaseUri . $entity['cover_image'];
                 }
             }
         }
     } catch (Exception $e) {
         $profilepost = array();
     }
     //echo "<pre>"; print_r($profilepost); exit;
     return $profilepost;
 }