~aleritty/ideatorrent-mysql/trunk

« back to all changes in this revision

Viewing changes to modules/ideatorrent/views/relationlist/json.php

  • Committer: aleritty
  • Date: 2009-05-27 20:52:15 UTC
  • Revision ID: aleritty@toshi-20090527205215-3id27b3l2kosikwe
passato alla versione speditami

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?php
2
 
 
3
 
/*
4
 
Copyright (C) 2008 Nicolas Deschildre <ndeschildre@gmail.com>
5
 
 
6
 
This program is free software; you can redistribute it and/or
7
 
modify it under the terms of the GNU General Public License
8
 
as published by the Free Software Foundation; either version 2
9
 
of the License, or (at your option) any later version.
10
 
 
11
 
This program is distributed in the hope that it will be useful,
12
 
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 
GNU General Public License for more details.
15
 
 
16
 
You should have received a copy of the GNU General Public License
17
 
along with this program; if not, write to the Free Software
18
 
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
19
 
*/
20
 
 
21
 
 
22
 
 
23
 
?>{"items": 
24
 
        [
25
 
 
26
 
<?php for ($i = 0; $i < count($this->_data); $i++) : ?>
27
 
 
28
 
<?php
29
 
        $this->item =& $this->_data[$i];
30
 
        echo $this->loadNonThemedTemplate("relationlist/", "json", "item");
31
 
        if($i != count($this->_data) - 1)
32
 
                echo ",";
33
 
?>
34
 
 
35
 
<?php endfor; ?>
36
 
 
37
 
        ]
38
 
}
39
 
 
40
 
 
 
1
<?php
 
2
 
 
3
/*
 
4
Copyright (C) 2008 Nicolas Deschildre <ndeschildre@gmail.com>
 
5
 
 
6
This program is free software; you can redistribute it and/or
 
7
modify it under the terms of the GNU General Public License
 
8
as published by the Free Software Foundation; either version 2
 
9
of the License, or (at your option) any later version.
 
10
 
 
11
This program is distributed in the hope that it will be useful,
 
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
GNU General Public License for more details.
 
15
 
 
16
You should have received a copy of the GNU General Public License
 
17
along with this program; if not, write to the Free Software
 
18
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
19
*/
 
20
 
 
21
 
 
22
 
 
23
?>{"items": 
 
24
        [
 
25
 
 
26
<?php for ($i = 0; $i < count($this->_data); $i++) : ?>
 
27
 
 
28
<?php
 
29
        $this->item =& $this->_data[$i];
 
30
        echo $this->loadNonThemedTemplate("relationlist/", "json", "item");
 
31
        if($i != count($this->_data) - 1)
 
32
                echo ",";
 
33
?>
 
34
 
 
35
<?php endfor; ?>
 
36
 
 
37
        ]
 
38
}
 
39
 
 
40