示例#1
0
 public function getIdenticals($container_deck)
 {
     $matches = array();
     $deck = new Deck();
     $deck->createFromID($container_deck);
     $slides = $deck->getSlides();
     foreach ($slides as $item) {
         if ($item->id == $this->id && ($item->position != $this->position || $item->deck->id != $this->deck->id)) {
             $matches[] = array('parent' => $item->deck->id, 'position' => $item->position);
         }
     }
     return $matches;
 }
示例#2
0
 function builder4impress()
 {
     $this->_template->disableHeader();
     $this->_template->disableFooter();
     $deck_id = isset($_GET['deck']) ? $_GET['deck'] : 0;
     $deck = new Deck();
     $slides = array();
     if ($deck_id) {
         $deck->createFromID($deck_id);
         $slides = $deck->getSlides();
         $_SESSION['deck'] = $deck_id;
     }
     $user_id = $this->_user['id'];
     if ($user_id) {
         $_SESSION['user'] = $user_id;
     }
     $this->set('deckObject', $deck);
     $this->set('slides', $slides);
 }