![]() |
Amanu
Projektmanagement für Selbstständige und Freelancer
|
Functions | |
| catchAll ($e) | |
| pushEvent ($type, $id, $name, $state) | |
| isPast ($date, $offset=false) | |
| getState ($type, $id) | |
| getLink ($event) | |
Variables | |
| $start = microtime(true) | |
| $events = array() | |
| $dbal = DBAL::getInstance() | |
| $q | |
| $projectArchived = PROJECT_ARCHIVED | |
| $projectids = $q->fetchAll(PDO::FETCH_ASSOC) | |
| foreach($projectids as $projectid) | $stream = AmaStream::getInstance() |
| $x | |
| catchAll | ( | $e | ) |
This function catches all uncaught Exceptions!
| Exception | $e |
| pushEvent | ( | $type, | |
| $id, | |||
| $name, | |||
| $state | |||
| ) |
Adds an event to the event array
| $type | - the type of the thing |
| $id | - the id of the thing |
| $name | - the display name |
| $state | - the state of the thing |
| isPast | ( | $date, | |
$offset = false |
|||
| ) |
| String | $date | - a date in format yyy-MM-dd |
| boolean | $offset | - if the invoice-due-days offset should be calculated |
| getState | ( | $type, | |
| $id | |||
| ) |
Returns a name of a state
| $type | |
| $id |
| getLink | ( | $event | ) |
Returns a linked name and declaration
| $event | - the event |
Change project state if necessary
| $start = microtime(true) |
| $events = array() |
| $dbal = DBAL::getInstance() |
| $q |
| $projectArchived = PROJECT_ARCHIVED |
| $projectids = $q->fetchAll(PDO::FETCH_ASSOC) |
| foreach ($projectids as $projectid) $stream = AmaStream::getInstance() |