autostatus

Sign in or create your account | Project List | Help | pwet.fr | Planet eZ Publish.fr | Bioutifoul Photos

autostatus Svn Source Tree

Root/tags/autostatus_0.1/extension/autostatus/classes/autostatusfunctioncollection.php

  • Property svn:keywords set to: Id HeadURL
Source at commit HEAD created 10 months 9 days ago.
By dpobel, Added files about move to Github
1<?php
2/**
3 * $Id: autostatusfunctioncollection.php 10 2009-10-30 21:51:41Z dpobel $
4 * $HeadURL: http://svn.projects.ez.no/autostatus/tags/autostatus_0.1/extension/autostatus/classes/autostatusfunctioncollection.php $
5 *
6 * SOFTWARE NAME: autostatus
7 * SOFTWARE RELEASE: 0.1
8 * COPYRIGHT NOTICE: Copyright (C) 2009 Damien POBEL
9 * SOFTWARE LICENSE: GNU General Public License v2.0
10 * NOTICE: >
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of version 2.0 of the GNU General
13 * Public License as published by the Free Software Foundation.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of version 2.0 of the GNU General
21 * Public License along with this program; if not, write to the Free
22 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
23 * MA 02110-1301, USA.
24 */
25
26/**
27 * Provides method used by fetch function of autostatus module
28 */
29class autostatusFunctionCollection
30{
31
32    /**
33     * Return the list of the available networks
34     *
35     * @access public
36     * @return array( 'result' => array() )
37     */
38    function networkList()
39    {
40        $ini = eZINI::instance( 'autostatus.ini' );
41        $identifierArray = $ini->variable( 'AutoStatusSettings', 'SocialNetworks' );
42        $networkObjects = array();
43        foreach( $identifierArray as $identifier )
44        {
45            $object = autostatusSocialNetwork::fetchByIdentifier( $identifier );
46            if ( $object !== null )
47            {
48                $networkObjects[] = $object;
49            }
50        }
51        return array( 'result' => $networkObjects );
52    }
53
54
55}
56
57
58?>
59

Archive Download this file

Revision: HEAD