Skip to content
Browse files

deleting demo tasks

  • Loading branch information...
1 parent c7df6c6 commit 9370b1b5032a57dd4a2f92146c14c8058c8821aa @Zeelot Zeelot committed Mar 22, 2012
Showing with 0 additions and 80 deletions.
  1. +0 −40 classes/Minion/Task/demo.php
  2. +0 −40 classes/Minion/Task/demo/foo.php
View
40 classes/Minion/Task/demo.php
@@ -1,40 +0,0 @@
-<?php defined('SYSPATH') or die('No direct script access.');
-/**
- * This is a demo task.
- *
- * It can accept the following options:
- * - foo: this parameter does something. It is required.
- * - bar: this parameter does something else. It should be numeric.
- *
- * @package Kohana
- * @category Helpers
- * @author Kohana Team
- * @copyright (c) 2009-2011 Kohana Team
- * @license http://kohanaframework.org/license
- */
-class Minion_Task_Demo extends Minion_Task
-{
- protected $_defaults = array(
- 'foo' => 'bar',
- 'bar' => NULL,
- );
-
- /**
- *
- *
- * @return
- */
- protected function _execute(array $params)
- {
- // var_dump(valid::email('mcnama1_patr@bentley.edu'));
- var_dump($params);
- echo 'foobar';
- }
-
- public function build_validation(Validation $validation)
- {
- return parent::build_validation($validation)
- ->rule('foo', 'not_empty') // Require this param
- ->rule('bar', 'numeric');
- }
-}
View
40 classes/Minion/Task/demo/foo.php
@@ -1,40 +0,0 @@
-<?php defined('SYSPATH') or die('No direct script access.');
-/**
- * This is a demo task.....
- *
- * It can accept the following options:
- * - foo: this parameter does something. It is required.
- * - bar: this parameter does something else. It should be numeric.
- *
- * @package Kohana
- * @category Helpers
- * @author Kohana Team
- * @copyright (c) 2009-2011 Kohana Team
- * @license http://kohanaframework.org/license
- */
-class Minion_Task_Demo_Foo extends Minion_Task
-{
- protected $_config = array(
- 'foo',
- 'bar',
- );
-
- /**
- *
- *
- * @return
- */
- protected function _execute(array $params)
- {
- var_dump(valid::email('mcnama1_patr@bentley.edu'));
- var_dump($params);
- echo 'foobar';
- }
-
- public function build_validation(Validation $validation)
- {
- return parent::build_validation($validation)
- ->rule('foo', 'not_empty') // Require this param
- ->rule('bar', 'numeric');
- }
-}

0 comments on commit 9370b1b

Please sign in to comment.
Something went wrong with that request. Please try again.