Files
Phraseanet/lib/classes/task/period/test.php
2013-01-21 23:28:58 +01:00

51 lines
1.1 KiB
PHP

<?php
/*
* This file is part of Phraseanet
*
* (c) 2005-2013 Alchemy
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
*
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
* @link www.phraseanet.com
*/
class task_period_test extends task_appboxAbstract
{
public function getName()
{
return "Test";
}
public function help()
{
return "just saying what i'm doing";
}
protected function retrieveContent(appbox $appbox)
{
$this->log('test class, retrieve content');
return array(array('hello'), array('world'));
}
protected function processOneContent(appbox $appbox, Array $row)
{
$this->log(sprintf("test class, process content : `%s`", implode(' ', $row)));
return $this;
}
protected function postProcessOneContent(appbox $appbox, Array $row)
{
$this->log(sprintf("test class, post process content, they were %s", count($row)));
return $this;
}
}