コード例 #1
0
ファイル: putPortalTally.php プロジェクト: ag-nthinh/minpure
<?php

require_once dirname(__FILE__) . '/../conf/ini.php';
$obj = new Tally();
$obj->tallyLog2(1);
コード例 #2
0
ファイル: cronPutTweetCnt.php プロジェクト: ag-nthinh/minpure
<?php

require_once dirname(__FILE__) . '/../conf/ini.php';
$obj = new Tally();
// $term = " created >= '2013-07-26' AND created < '2013-07-27' ";
$term = " created < date(current_timestamp + interval 1 day) AND created >= date(now()) ";
$message = $obj->contributionSNS($term);
CreateLog::putTweetCntLog($message);
コード例 #3
0
ファイル: pi.tally.php プロジェクト: TannerH/IOU
    Tally 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 3 of the License, or
    (at your option) any later version.

    Tally 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.

    Read the terms of the GNU General Public License
    at <http://www.gnu.org/licenses/>.
    
    Copyright 2011 Derek Hogue
*/
$plugin_info = array('pi_name' => 'Tally', 'pi_version' => '1.0.2', 'pi_author' => 'Derek Hogue', 'pi_author_url' => 'http://amphibian.info', 'pi_description' => 'Tally or average numbers in an entries loop.', 'pi_usage' => Tally::usage());
class Tally
{
    function __construct()
    {
        $this->EE =& get_instance();
    }
    function add()
    {
        $collection = $this->EE->TMPL->fetch_param('collection');
        $value = $this->EE->TMPL->fetch_param('value');
        if ($collection != '' && $value != '') {
            $this->EE->session->cache['tally'][$collection][] = $this->_float($value);
        }
    }
    function total()
コード例 #4
0
ファイル: putSpeedTally.php プロジェクト: ag-nthinh/minpure
<?php

require_once dirname(__FILE__) . '/../conf/ini.php';
$obj = new Tally();
$obj->speedTallyLog();
コード例 #5
0
ファイル: putTally.php プロジェクト: ag-nthinh/minpure
<?php

require_once dirname(__FILE__) . '/../conf/ini.php';
$obj = new Tally();
$obj->tallyLog(1);