Example #1
0
 public function parsehelp($id)
 {
     $db =& JFactory::getDBO();
     $db->setQuery('SELECT metaAuthor, metaKeys, metaDesc FROM #__sobipro_object WHERE id=' . intval($id));
     if ($line = $db->loadAssoc()) {
         $link = profilef::parsehelplink(stripslashes($line['metaAuthor']));
         $youtube = profilef::parseyt($id, stripslashes($line['metaDesc']));
         $helppoints = trim($line['metaKeys']);
         if (!empty($helppoints)) {
             $helppoints = preg_replace('/\\s*[\\n\\r]\\s*/', '|', str_replace('|', '', stripslashes($helppoints)));
         } else {
             $helppoints = '';
         }
         return array($youtube, $link, $helppoints);
     }
     return array('', '', '');
 }