Source for file library.php

Documentation is available at library.php

  1. <?php
  2. /**
  3.  * @package     Joomla.Libraries
  4.  * @subpackage  Installer
  5.  *
  6.  * @copyright   Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
  7.  * @license     GNU General Public License version 2 or later; see LICENSE
  8.  */
  9.  
  10. defined('JPATH_PLATFORM'or die;
  11.  
  12. /**
  13.  * Joomla! Library Manifest File
  14.  *
  15.  * @package     Joomla.Libraries
  16.  * @subpackage  Installer
  17.  * @since       3.1
  18.  */
  19. {
  20.     /**
  21.      * File system name of the library
  22.      *
  23.      * @var    string 
  24.      * @since  3.1
  25.      */
  26.     public $libraryname = '';
  27.  
  28.     /**
  29.      * Creation Date of the library
  30.      *
  31.      * @var    string 
  32.      * @since  3.1
  33.      */
  34.     public $creationDate = '';
  35.  
  36.     /**
  37.      * Copyright notice for the library
  38.      *
  39.      * @var    string 
  40.      * @since  3.1
  41.      */
  42.     public $copyright = '';
  43.  
  44.     /**
  45.      * License for the library
  46.      *
  47.      * @var    string 
  48.      * @since  3.1
  49.      */
  50.     public $license = '';
  51.  
  52.     /**
  53.      * Author for the library
  54.      *
  55.      * @var    string 
  56.      * @since  3.1
  57.      */
  58.     public $author = '';
  59.  
  60.     /**
  61.      * Author email for the library
  62.      *
  63.      * @var    string 
  64.      * @since  3.1
  65.      */
  66.     public $authoremail = '';
  67.  
  68.     /**
  69.      * Author URL for the library
  70.      *
  71.      * @var    string 
  72.      * @since  3.1
  73.      */
  74.     public $authorurl = '';
  75.  
  76.     /**
  77.      * Apply manifest data from a SimpleXMLElement to the object.
  78.      *
  79.      * @param   SimpleXMLElement  $xml  Data to load
  80.      *
  81.      * @return  void 
  82.      *
  83.      * @since   3.1
  84.      */
  85.     protected function loadManifestFromData(SimpleXMLElement $xml)
  86.     {
  87.         $this->name         = (string) $xml->name;
  88.         $this->libraryname  = (string) $xml->libraryname;
  89.         $this->version      = (string) $xml->version;
  90.         $this->description  = (string) $xml->description;
  91.         $this->creationdate = (string) $xml->creationDate;
  92.         $this->author       = (string) $xml->author;
  93.         $this->authoremail  = (string) $xml->authorEmail;
  94.         $this->authorurl    = (string) $xml->authorUrl;
  95.         $this->packager     = (string) $xml->packager;
  96.         $this->packagerurl  = (string) $xml->packagerurl;
  97.         $this->update       = (string) $xml->update;
  98.  
  99.         if (isset($xml->files&& isset($xml->files->file&& count($xml->files->file))
  100.         {
  101.             foreach ($xml->files->file as $file)
  102.             {
  103.                 $this->filelist[= (string) $file;
  104.             }
  105.         }
  106.     }
  107. }

Documentation generated on Tue, 19 Nov 2013 15:07:03 +0100 by phpDocumentor 1.4.3