| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Class ActionScheduler_NullAction |
| 5 |
*/ |
| 6 |
class ActionScheduler_NullAction extends ActionScheduler_Action { |
| 7 |
|
| 8 |
/** |
| 9 |
* Construct. |
| 10 |
* |
| 11 |
* @param string $hook Action hook. |
| 12 |
* @param mixed[] $args Action arguments. |
| 13 |
* @param null|ActionScheduler_Schedule $schedule Action schedule. |
| 14 |
*/ |
| 15 |
public function __construct( $hook = '', array $args = array(), ?ActionScheduler_Schedule $schedule = null ) { |
| 16 |
$this->set_schedule( new ActionScheduler_NullSchedule() ); |
| 17 |
} |
| 18 |
|
| 19 |
/** |
| 20 |
* Execute action. |
| 21 |
*/ |
| 22 |
public function execute() { |
| 23 |
// don't execute. |
| 24 |
} |
| 25 |
} |
| 26 |
|