| | 138 | |
| | 139 | == API for application functions == |
| | 140 | |
| | 141 | The interface of "job" objects is |
| | 142 | |
| | 143 | {{{ |
| | 144 | mixed get_info() |
| | 145 | array get_instances() |
| | 146 | array get_finished_instances() |
| | 147 | bool set_priority(float $priority [int $level]} |
| | 148 | bool update_state(int $state) |
| | 149 | }}} |
| | 150 | |
| | 151 | The interface of "instance" objects is: |
| | 152 | |
| | 153 | {{{ |
| | 154 | bool set_priority(float $priority) |
| | 155 | bool update_info(mixed $app_data) |
| | 156 | }}} |
| | 157 | |
| | 158 | "User" objects are accessed by first obtaining an object $user->bossa. |
| | 159 | The interface of the resulting object is: |
| | 160 | |
| | 161 | {{{ |
| | 162 | mixed get_info() |
| | 163 | bool update_info(mixed $app_data) |
| | 164 | bool set_level(int $level) |
| | 165 | }}} |