public function &getObj()
 {
     if (!$this->myObj) {
         $obj =& parent::getObj();
         $obj['variable'] = $this->getAttribute('variable');
         $obj['savevalue'] = $this->save;
     }
     return $this->myObj;
 }
 public function &getObj()
 {
     if (!$this->myObj) {
         $obj =& parent::getObj();
         $obj['linktype'] = $this->getAttribute('linktype');
         $obj['showarrow'] = $this->showArrow;
         $obj['prefixed'] = $this->prefixed;
         switch ($obj['linktype']) {
             case 'items':
             case 'gallery':
             case 'map':
                 if ($this->jsonp || $this->getAttribute('xmlsrc')) {
                     $obj['linktype'] = 'remotexml';
                     $obj['href'] = json_encode(array('xml' => $this->prepareURL($this->getAttribute('xmlsrc'), false), 'jsonp' => $this->prepareURL($this->jsonp)));
                 } else {
                     if ($this->screen) {
                         $obj['linktype'] = 'screen';
                         $screenObj =& $this->screen->getObj();
                         $obj['href'] = $screenObj['id'];
                         $screenObj['parentType'] = 'item';
                         $screenObj['parent'] = $obj['id'];
                     } else {
                         $obj['linktype'] = 'none';
                     }
                 }
                 break;
             case 'email':
                 $email = array('to' => $this->getAttribute('emailto'), 'subject' => $this->getAttribute('emailsubject'), 'body' => $this->getAttribute('emailbody'));
                 $obj['href'] = json_encode($email);
                 break;
                 //file
             //file
             case 'pdf':
             case 'excel':
             case 'doc':
             case 'ppt':
             case 'mp4':
                 $obj['linktype'] = 'file';
                 $obj['href'] = $this->getAttribute('href');
                 //toggle
             //toggle
             case 'toggle':
                 $obj['linktype'] = 'none';
                 break;
             case 'tab':
             case 'video':
             case 'web':
             case 'youtube':
             case 'vimeo':
             case 'phone':
             case 'twitter':
             case 'facebook':
             case 'app':
             case 'register':
             case 'login':
                 $obj['href'] = $this->getAttribute('href');
                 break;
             case 'back':
             case 'bbm':
                 break;
             case 'refresh':
                 $obj['refreshtype'] = $this->getAttribute('refreshtype');
                 break;
             default:
                 $obj['linktype'] = 'none';
         }
     }
     return $this->myObj;
 }