| 
    Bristol SU Support Package
    
   | 
 


Public Member Functions | |
| setName (string $name) | |
| getName () | |
| setDescription (string $description) | |
| getDescription () | |
| setClassName (string $className) | |
| getClassName () | |
| toArray () | |
| toJson ($options=0) | |
| __toString () | |
Static Public Member Functions | |
| static | fromArray (array $parameters) | 
Private Attributes | |
| $name | |
| $description | |
| $className | |
Definition at line 13 of file RegisteredAction.php.
| BristolSU\Support\Action\RegisteredAction::__toString | ( | ) | 
Transform the action to json when casting class to a string
Definition at line 152 of file RegisteredAction.php.
References BristolSU\Support\Action\RegisteredAction\toJson().
      
  | 
  static | 
Create a RegisteredAction instance from a raw metadata array.
Creates a RegisteredAction instance from an array of the form [ 'name' => 'Action Name', 'description' => 'Action Description', 'class' => 'ClassName' ]
| array | $parameters | The raw metadata of the action | 
Implements BristolSU\Support\Action\Contracts\RegisteredAction.
Definition at line 113 of file RegisteredAction.php.
Referenced by BristolSU\Support\Action\ActionRepository\all(), and BristolSU\Support\Action\ActionRepository\fromClass().
| BristolSU\Support\Action\RegisteredAction::getClassName | ( | ) | 
Get the class name of the action
Implements BristolSU\Support\Action\Contracts\RegisteredAction.
Definition at line 95 of file RegisteredAction.php.
References BristolSU\Support\Action\RegisteredAction\$className.
Referenced by BristolSU\Support\Action\RegisteredAction\toArray().
| BristolSU\Support\Action\RegisteredAction::getDescription | ( | ) | 
Get the description of the action.
Implements BristolSU\Support\Action\Contracts\RegisteredAction.
Definition at line 74 of file RegisteredAction.php.
References BristolSU\Support\Action\RegisteredAction\$description.
Referenced by BristolSU\Support\Action\RegisteredAction\toArray().
| BristolSU\Support\Action\RegisteredAction::getName | ( | ) | 
Get the name of the action.
Implements BristolSU\Support\Action\Contracts\RegisteredAction.
Definition at line 53 of file RegisteredAction.php.
References BristolSU\Support\Action\RegisteredAction\$name.
Referenced by BristolSU\Support\Action\RegisteredAction\toArray().
| BristolSU\Support\Action\RegisteredAction::setClassName | ( | string | $className | ) | 
Set the class name of the action.
| string | $className | Class of the action | 
Implements BristolSU\Support\Action\Contracts\RegisteredAction.
Definition at line 85 of file RegisteredAction.php.
References BristolSU\Support\Action\RegisteredAction\$className.
| BristolSU\Support\Action\RegisteredAction::setDescription | ( | string | $description | ) | 
Set the description of the action.
| string | $description | Name of the description | 
Implements BristolSU\Support\Action\Contracts\RegisteredAction.
Definition at line 64 of file RegisteredAction.php.
References BristolSU\Support\Action\RegisteredAction\$description.
| BristolSU\Support\Action\RegisteredAction::setName | ( | string | $name | ) | 
Set the name of the action.
| string | $name | Name of the action | 
Implements BristolSU\Support\Action\Contracts\RegisteredAction.
Definition at line 43 of file RegisteredAction.php.
References BristolSU\Support\Action\RegisteredAction\$name.
| BristolSU\Support\Action\RegisteredAction::toArray | ( | ) | 
Transform the action to an array
Implements BristolSU\Support\Action\Contracts\RegisteredAction.
Definition at line 127 of file RegisteredAction.php.
References BristolSU\Support\Action\RegisteredAction\getClassName(), BristolSU\Support\Action\RegisteredAction\getDescription(), and BristolSU\Support\Action\RegisteredAction\getName().
Referenced by BristolSU\Support\Action\RegisteredAction\toJson().
| BristolSU\Support\Action\RegisteredAction::toJson | ( | $options = 0 | ) | 
Transform the action to json
| int | $options | 
Implements BristolSU\Support\Action\Contracts\RegisteredAction.
Definition at line 142 of file RegisteredAction.php.
References BristolSU\Support\Action\RegisteredAction\toArray().
Referenced by BristolSU\Support\Action\RegisteredAction\__toString().
      
  | 
  private | 
Definition at line 35 of file RegisteredAction.php.
Referenced by BristolSU\Support\Action\RegisteredAction\getClassName(), and BristolSU\Support\Action\RegisteredAction\setClassName().
      
  | 
  private | 
Definition at line 28 of file RegisteredAction.php.
Referenced by BristolSU\Support\Action\RegisteredAction\getDescription(), and BristolSU\Support\Action\RegisteredAction\setDescription().
      
  | 
  private | 
Definition at line 21 of file RegisteredAction.php.
Referenced by BristolSU\Support\Action\RegisteredAction\getName(), and BristolSU\Support\Action\RegisteredAction\setName().
 1.8.13