Blame view

src/vendor/1.2.5/Phalcon/CLI/Task.php 817 Bytes
ef60cd4d   Administrator   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
  <?php 
  
  namespace Phalcon\CLI {
  
  	/**
  	 * Phalcon\CLI\Task
  	 *
  	 * Every command-line task should extend this class that encapsulates all the task functionality
  	 *
  	 * A task can be used to run "tasks" such as migrations, cronjobs, unit-tests, or anything that you want.
  	 * The Task class should at least have a "mainAction" method
  	 *
  	 *<code>
  	 *
  	 *class HelloTask extends \Phalcon\CLI\Task
  	 *{
  	 *
  	 *  //This action will be executed by default
  	 *  public function mainAction()
  	 *  {
  	 *
  	 *  }
  	 *
  	 *  public function findAction()
  	 *  {
  	 *
  	 *  }
  	 *
  	 *}
  	 *
  	 *</code>
  	 */
  	
  	class Task extends \Phalcon\DI\Injectable implements \Phalcon\Events\EventsAwareInterface, \Phalcon\DI\InjectionAwareInterface {
  
  		/**
  		 * \Phalcon_CLI_Task constructor
  		 */
  		final public function __construct(){ }
  
  	}
  }