Files
Phraseanet/lib/classes/task/period/test.php

46 lines
996 B
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.
*/
class task_period_test extends task_appboxAbstract
{
public static function getName()
{
return "Test";
}
public static 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;
}
}