~chroot64bit/zivios/gentoo-experimental

« back to all changes in this revision

Viewing changes to application/library/Zend/Pdf/Element/Null.php

  • Committer: Mustafa A. Hashmi
  • Date: 2008-12-04 13:32:21 UTC
  • Revision ID: mhashmi@zivios.org-20081204133221-0nd1trunwevijj38
Inclusion of new installation framework with ties to zend layout and dojo layout

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
/**
 
3
 * Zend Framework
 
4
 *
 
5
 * LICENSE
 
6
 *
 
7
 * This source file is subject to the new BSD license that is bundled
 
8
 * with this package in the file LICENSE.txt.
 
9
 * It is also available through the world-wide-web at this URL:
 
10
 * http://framework.zend.com/license/new-bsd
 
11
 * If you did not receive a copy of the license and are unable to
 
12
 * obtain it through the world-wide-web, please send an email
 
13
 * to license@zend.com so we can send you a copy immediately.
 
14
 *
 
15
 * @category   Zend
 
16
 * @package    Zend_Pdf
 
17
 * @copyright  Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
 
18
 * @license    http://framework.zend.com/license/new-bsd     New BSD License
 
19
 */
 
20
 
 
21
 
 
22
/** Zend_Pdf_Element */
 
23
require_once 'Zend/Pdf/Element.php';
 
24
 
 
25
 
 
26
/**
 
27
 * PDF file 'null' element implementation
 
28
 *
 
29
 * @category   Zend
 
30
 * @package    Zend_Pdf
 
31
 * @copyright  Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
 
32
 * @license    http://framework.zend.com/license/new-bsd     New BSD License
 
33
 */
 
34
class Zend_Pdf_Element_Null extends Zend_Pdf_Element
 
35
{
 
36
    /**
 
37
     * Object value. Always null.
 
38
     *
 
39
     * @var mixed
 
40
     */
 
41
    public $value;
 
42
 
 
43
 
 
44
    /**
 
45
     * Object constructor
 
46
     */
 
47
    public function __construct()
 
48
    {
 
49
        $this->value = null;
 
50
    }
 
51
 
 
52
 
 
53
    /**
 
54
     * Return type of the element.
 
55
     *
 
56
     * @return integer
 
57
     */
 
58
    public function getType()
 
59
    {
 
60
        return Zend_Pdf_Element::TYPE_NULL;
 
61
    }
 
62
 
 
63
 
 
64
    /**
 
65
     * Return object as string
 
66
     *
 
67
     * @param Zend_Pdf_Factory $factory
 
68
     * @return string
 
69
     */
 
70
    public function toString($factory = null)
 
71
    {
 
72
        return 'null';
 
73
    }
 
74
}