Source for file Smileys.class.php

Documentation is available at Smileys.class.php

  1. <?php
  2. /**
  3.  * Class Smileys, generate smiles list from db table
  4.  *
  5.  * LICENSE: CREATIVE COMMONS PUBLIC LICENSE  "Namensnennung — Nicht-kommerziell 2.0"
  6.  *
  7.  * @copyright  2009 <SEDesign />
  8.  * @license    http://creativecommons.org/licenses/by-nc/2.0/de/
  9.  * @version    $3.0.6$
  10.  * @link       http://www.sedesign.de/de_produkte_chat-v3.html
  11.  * @since      File available since Alpha 1.0
  12.  */
  13.  
  14. class Smileys extends DbConectionMaker
  15. {
  16.     /**
  17.     * Constructor
  18.     *
  19.     * @uses ConnectDB::sqlGet()
  20.     * @uses ConnectDB::close()
  21.     * @return void 
  22.     */
  23.     public function __construct (){
  24.     
  25.         // call parent Constructor from class DbConectionMaker
  26.         parent::__construct();
  27.         
  28.         // Disable Browser Chache
  29.         header('Cache-Control: no-store, no-cache, must-revalidate, pre-check=0, post-check=0, max-age=0');
  30.         
  31.         // get smileys from db
  32.         $smil_array=$this->dbObj->sqlGet("SELECT etchat_smileys_sign, etchat_smileys_img FROM {$this->_prefix}etchat_smileys");
  33.  
  34.         // create HTML List with smileys
  35.         foreach ($smil_array as $smil)
  36.             echo "<img src=\"".$smil[1]."\" id=\"".$smil[0]."\" style=\"cursor:pointer;\">\n";
  37.         
  38.         // close DB connect
  39.         $this->dbObj->close();
  40.     }

Documentation generated on Thu, 05 May 2011 14:05:58 +0000 by phpDocumentor 1.4.3