[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * Joomla! Content Management System 5 * 6 * @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org> 7 * @license GNU General Public License version 2 or later; see LICENSE.txt 8 */ 9 10 namespace Joomla\CMS\Installer\Manifest; 11 12 use Joomla\CMS\Installer\Manifest; 13 14 // phpcs:disable PSR1.Files.SideEffects 15 \defined('JPATH_PLATFORM') or die; 16 // phpcs:enable PSR1.Files.SideEffects 17 18 /** 19 * Joomla! Library Manifest File 20 * 21 * @since 3.1 22 */ 23 class LibraryManifest extends Manifest 24 { 25 /** 26 * File system name of the library 27 * 28 * @var string 29 * @since 3.1 30 */ 31 public $libraryname = ''; 32 33 /** 34 * Creation Date of the library 35 * 36 * @var string 37 * @since 3.1 38 */ 39 public $creationDate = ''; 40 41 /** 42 * Copyright notice for the library 43 * 44 * @var string 45 * @since 3.1 46 */ 47 public $copyright = ''; 48 49 /** 50 * License for the library 51 * 52 * @var string 53 * @since 3.1 54 */ 55 public $license = ''; 56 57 /** 58 * Author for the library 59 * 60 * @var string 61 * @since 3.1 62 */ 63 public $author = ''; 64 65 /** 66 * Author email for the library 67 * 68 * @var string 69 * @since 3.1 70 */ 71 public $authoremail = ''; 72 73 /** 74 * Author URL for the library 75 * 76 * @var string 77 * @since 3.1 78 */ 79 public $authorurl = ''; 80 81 /** 82 * Apply manifest data from a \SimpleXMLElement to the object. 83 * 84 * @param \SimpleXMLElement $xml Data to load 85 * 86 * @return void 87 * 88 * @since 3.1 89 */ 90 protected function loadManifestFromData(\SimpleXMLElement $xml) 91 { 92 $this->name = (string) $xml->name; 93 $this->libraryname = (string) $xml->libraryname; 94 $this->version = (string) $xml->version; 95 $this->description = (string) $xml->description; 96 $this->creationdate = (string) $xml->creationDate; 97 $this->author = (string) $xml->author; 98 $this->authoremail = (string) $xml->authorEmail; 99 $this->authorurl = (string) $xml->authorUrl; 100 $this->packager = (string) $xml->packager; 101 $this->packagerurl = (string) $xml->packagerurl; 102 $this->update = (string) $xml->update; 103 104 if (isset($xml->files) && isset($xml->files->file) && \count($xml->files->file)) { 105 foreach ($xml->files->file as $file) { 106 $this->filelist[] = (string) $file; 107 } 108 } 109 } 110 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |