Indefero

Indefero Commit Details


Date:2008-11-27 04:29:40 (16 years 25 days ago)
Author:Loic d'Anterroches
Branch:dev, develop, feature-issue_links, feature.better-home, feature.content-md5, feature.diff-whitespace, feature.download-md5, feature.issue-links, feature.issue-of-others, feature.issue-summary, feature.search-filter, feature.webrepos, feature.wiki-default-page, master, release-1.1, release-1.2, release-1.3
Commit:fbe364462dfb467305a1bfd67016a9c2d5b4e8d9
Parents: 45d1422ab076395dac1a132687fa39d0227018c9
Message:Fixed issue 67, conf and Conf folders conflict.

Changes:

File differences

src/IDF/Conf.php
7373
7474
7575
76
76
7777
7878
7979
'type' => 'unique',
),
);
$this->f = new IDF_Conf_DataProxy($this);
$this->f = new IDF_Config_DataProxy($this);
}
function setProject($project)
src/IDF/Conf/DataProxy.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
/* -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
# ***** BEGIN LICENSE BLOCK *****
# This file is part of InDefero, an open source project management application.
# Copyright (C) 2008 Céondo Ltd and contributors.
#
# InDefero is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# InDefero is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
# ***** END LICENSE BLOCK ***** */
/**
* Field proxy to access the configuration data through
* {$conf.f.fieldname} in a template.
*/
class IDF_Conf_DataProxy
{
protected $obj = null;
public function __construct(&$obj)
{
$this->obj = $obj;
}
public function __get($field)
{
return $this->obj->getVal($field);
}
}
src/IDF/Config/DataProxy.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
/* -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
# ***** BEGIN LICENSE BLOCK *****
# This file is part of InDefero, an open source project management application.
# Copyright (C) 2008 Céondo Ltd and contributors.
#
# InDefero is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# InDefero is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
# ***** END LICENSE BLOCK ***** */
/**
* Field proxy to access the configuration data through
* {$conf.f.fieldname} in a template.
*/
class IDF_Config_DataProxy
{
protected $obj = null;
public function __construct(&$obj)
{
$this->obj = $obj;
}
public function __get($field)
{
return $this->obj->getVal($field);
}
}

Archive Download the corresponding diff file

Page rendered in 0.07571s using 14 queries.