Apache Zeta Components Manual :: File Source for image.php

Source for file image.php

Documentation is available at image.php

  1. <?php
  2. /**
  3.  * File containing the ezcFeedImageElement class.
  4.  *
  5.  * Licensed to the Apache Software Foundation (ASF) under one
  6.  * or more contributor license agreements.  See the NOTICE file
  7.  * distributed with this work for additional information
  8.  * regarding copyright ownership.  The ASF licenses this file
  9.  * to you under the Apache License, Version 2.0 (the
  10.  * "License"); you may not use this file except in compliance
  11.  * with the License.  You may obtain a copy of the License at
  12.  * 
  13.  *   http://www.apache.org/licenses/LICENSE-2.0
  14.  * 
  15.  * Unless required by applicable law or agreed to in writing,
  16.  * software distributed under the License is distributed on an
  17.  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  18.  * KIND, either express or implied.  See the License for the
  19.  * specific language governing permissions and limitations
  20.  * under the License.
  21.  *
  22.  * @package Feed
  23.  * @version //autogentag//
  24.  * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
  25.  * @filesource
  26.  */
  27.  
  28. /**
  29.  * Class defining an image element.
  30.  *
  31.  * @property string $link 
  32.  *                   The URL where the image is stored.
  33.  * @property string $title 
  34.  *                   The title of the image.
  35.  * @property string $url 
  36.  *                   The URL the image points at.
  37.  * @property string $description 
  38.  *                   A description for the image.
  39.  * @property int $width 
  40.  *                The width of the image in pixels.
  41.  * @property int $height 
  42.  *                The height of the image in pixels.
  43.  * @property string $about 
  44.  *                   An identifier for the image (usually the same value as $link).
  45.  *                   Used only by RSS1.
  46.  *
  47.  * @package Feed
  48.  * @version //autogentag//
  49.  */
  50. {
  51.     /**
  52.      * The URL to the image.
  53.      *
  54.      * @var string 
  55.      */
  56.     public $link;
  57.  
  58.     /**
  59.      * The title for the image.
  60.      *
  61.      * @var string 
  62.      */
  63.     public $title;
  64.  
  65.     /**
  66.      * The URL the image points at.
  67.      *
  68.      * @var string 
  69.      */
  70.     public $url;
  71.  
  72.     /**
  73.      * A description for the image.
  74.      *
  75.      * @var string 
  76.      */
  77.     public $description;
  78.  
  79.     /**
  80.      * The width of the image in pixels.
  81.      *
  82.      * @var int 
  83.      */
  84.     public $width;
  85.  
  86.     /**
  87.      * The height of the image in pixels.
  88.      *
  89.      * @var int 
  90.      */
  91.     public $height;
  92.  
  93.     /**
  94.      * The identifier of the image.
  95.      *
  96.      * @var string 
  97.      */
  98.     public $about;
  99.  
  100.     /**
  101.      * Returns the link attribute.
  102.      *
  103.      * @return string 
  104.      */
  105.     public function __toString()
  106.     {
  107.         return $this->link . '';
  108.     }
  109. }
  110. ?>
Documentation generated by phpDocumentor 1.4.3