Source for file Meta.php

Documentation is available at Meta.php

  1. <?php
  2. // vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 fdm=marker encoding=utf8 :
  3. /**
  4.  * Pxxo - build self-supported and interoperable Web graphical components
  5.  * 
  6.  * Copyright (c) 2008, Nicolas Thouvenin
  7.  *
  8.  * All rights reserved.
  9.  *
  10.  * Redistribution and use in source and binary forms, with or without
  11.  * modification, are permitted provided that the following conditions are met:
  12.  *
  13.  *     * Redistributions of source code must retain the above copyright
  14.  *       notice, this list of conditions and the following disclaimer.
  15.  *     * Redistributions in binary form must reproduce the above copyright
  16.  *       notice, this list of conditions and the following disclaimer in the
  17.  *       documentation and/or other materials provided with the distribution.
  18.  *     * Neither the name of the author nor the names of its contributors may be
  19.  *       used to endorse or promote products derived from this software without
  20.  *       specific prior written permission.
  21.  *
  22.  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY
  23.  * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  24.  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  25.  * DISCLAIMED. IN NO EVENT SHALL THE REGENTS AND CONTRIBUTORS BE LIABLE FOR ANY
  26.  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  27.  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  28.  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  29.  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  30.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  31.  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  32.  
  33.  * @package    Pxxo
  34.  * @copyright  Copyright (c) 2008 Nicolas Thouvenin
  35.  * @license    http://opensource.org/licenses/bsd-license.php
  36.  * @version    $Id$
  37.  */
  38. require_once 'Pxxo/Buffer/Header.php';
  39.  
  40. /**
  41.  * Classe permettant de socker des informations destinées à produire une balise Meta
  42.  *
  43.  *
  44.  * @package    Pxxo
  45.  * @copyright  Copyright (c) 2008 Nicolas Thouvenin
  46.  * @license    http://opensource.org/licenses/bsd-license.php
  47.  */
  48. {
  49.             /**
  50.      * @var     string type du contenu du flux
  51.      */
  52.     protected $type = 'meta';
  53.     /**
  54.      * Nom de la balise Meta
  55.      * @var string 
  56.      */
  57.     public $name;
  58.     /**
  59.      * Retrourne une chaine en HTML permettant d'afficher l'information d'entete
  60.      *
  61.      * @return    string chaine de caractère en HTML
  62.      * @abstract
  63.      */
  64.     public function getHTML(
  65.     {
  66.         return '<meta name="'.htmlspecialchars($this->name).'" content="'.htmlspecialchars($this->getContent()).'" />'."\n";
  67.     }
  68. }

Documentation generated on Thu, 13 Mar 2008 22:03:15 +0100 by phpDocumentor 1.4.1