1
<?php
2
/**
3
 * INI file modification task for Phing, the PHP build tool.
4
 *
5
 * Based on http://ant-contrib.sourceforge.net/tasks/tasks/inifile.html
6
 *
7
 * PHP version 5
8
 *
9
 * @category Tasks
10
 * @package  phing.tasks.ext
11
 * @author   Ken Guest <kguest@php.net>
12
 * @license  LGPL v3 or later http://www.gnu.org/licenses/lgpl.html
13
 * @link     http://www.phing.info/
14
 */
15

16
/**
17
 * Class for collecting details for removing keys or sections from an ini file
18
 *
19
 * @category Tasks
20
 * @package  phing.tasks.ext
21
 * @author   Ken Guest <kguest@php.net>
22
 * @license  LGPL v3 or later http://www.gnu.org/licenses/lgpl.html
23
 * @link     http://www.phing.info/
24
 */
25
class IniFileRemove
26
{
27
    /**
28
     * Property
29
     *
30
     * @var string
31
     */
32
    protected $property = null;
33

34
    /**
35
     * Section
36
     *
37
     * @var string
38
     */
39
    protected $section = null;
40

41
    /**
42
     * Set Section name
43
     *
44
     * @param string $section Name of section in ini file
45
     *
46
     * @return void
47
     */
48 1
    public function setSection($section)
49
    {
50 1
        $this->section = $section;
51
    }
52

53
    /**
54
     * Set Property/Key name
55
     *
56
     * @param string $property ini key name
57
     *
58
     * @return void
59
     */
60 1
    public function setProperty($property)
61
    {
62 1
        $this->property = $property;
63
    }
64

65
    /**
66
     * Get Property
67
     *
68
     * @return string
69
     */
70 1
    public function getProperty()
71
    {
72 1
        return $this->property;
73
    }
74

75
    /**
76
     * Get Section
77
     *
78
     * @return string
79
     */
80 1
    public function getSection()
81
    {
82 1
        return $this->section;
83
    }
84
}

Read our documentation on viewing source code .

Loading