コード例 #1
0
ファイル: profilef.php プロジェクト: vstorm83/propertease
 public function profilegetmuddefinition($id)
 {
     $db =& JFactory::getDBO();
     $db->setQuery('SELECT introtext, description FROM #__sobipro_category WHERE id=' . intval($id));
     $mdt = $db->loadAssoc();
     if (!empty($mdt)) {
         $name = trim(preg_replace('/\\s+/', ' ', $mdt['introtext']));
         $description = trim(preg_replace('/\\s+/', ' ', profilef::unhte(strip_tags(str_replace('>', '> ', $mdt['description'])))));
     } else {
         $name = '';
         $description = '';
     }
     return array($name, $description);
 }