.

StatusActiveSchedulerCommand Class Reference

Inheritance diagram for StatusActiveSchedulerCommand:
StatusAnyCommand CommandChain CommandBase ICommand IAction ISerializable

List of all members.

Protected Member Functions

  do_can_execute ($user)
  Returns true, if changing status is allowed.

Detailed Description

Definition at line 4 of file status.active.cmd.php.


Member Function Documentation

StatusActiveSchedulerCommand::do_can_execute ( user  )  [protected]

Returns true, if changing status is allowed.

Validates $user and than calls template method do_change_status($user)

Reimplemented from StatusAnyCommand.

Definition at line 10 of file status.active.cmd.php.

00010                                                  {
00011                 $ret = false;
00012                 $inst = $this->get_instance();
00013                 if ($inst instanceof IStatusHolder) {
00014                         $new_status = $this->get_params();
00015                         $ret = !($inst->is_active());
00016                         // Note that functions below are not be called, if $ret becomes false   
00017                         $ret = $ret && parent::do_can_execute($user);
00018                 }
00019                 return $ret;
00020         }

The documentation for this class was generated from the following file: