Operations for retrieving and modifying Press objects. More...
Public Member Functions | |
| & | _fromRow (&$row) |
| deleteById ($pressId) | |
| getById ($pressId) | |
| & | getByPath ($path) |
| & | getEnabledPresses () |
| getInsertPressId () | |
| getNames () | |
| & | getPressByPath ($path) |
| & | getPresses ($rangeInfo=null) |
| insertObject (&$press) | |
| newDataObject () | |
| PressDAO () | |
| pressExistsByPath ($path) | |
| resequencePresses () | |
| updateObject (&$press) | |
Operations for retrieving and modifying Press objects.
Definition at line 17 of file PressDAO.inc.php.
| & PressDAO._fromRow | ( | &$ | row | ) |
Internal function to return a Press object from a row.
| $row | array |
Definition at line 71 of file PressDAO.inc.php.
References newDataObject().
Referenced by getById(), and getByPath().
| PressDAO.deleteById | ( | $ | pressId | ) |
Delete a press by ID, INCLUDING ALL DEPENDENT ITEMS.
| $pressId | int |
Definition at line 215 of file PressDAO.inc.php.
| PressDAO.getById | ( | $ | pressId | ) |
Retrieve a press by press ID.
| $pressId | int |
Definition at line 30 of file PressDAO.inc.php.
References _fromRow().
| & PressDAO.getByPath | ( | $ | path | ) |
Retrieve a press by path.
| $path | string |
Definition at line 117 of file PressDAO.inc.php.
References _fromRow().
Referenced by getPressByPath().
| & PressDAO.getEnabledPresses | ( | ) |
Retrieve all enabled presses
Definition at line 194 of file PressDAO.inc.php.
| PressDAO.getInsertPressId | ( | ) |
Get the ID of the last inserted press.
Definition at line 207 of file PressDAO.inc.php.
Referenced by insertObject().
| PressDAO.getNames | ( | ) |
Retrieve the IDs and names of all presses in an associative array.
Definition at line 45 of file PressDAO.inc.php.
References getPresses().
| & PressDAO.getPressByPath | ( | $ | path | ) |
Retrieve a press by path. (Required by PKPPageRouter; should eventually be removed in favour of getByPath.)
Definition at line 107 of file PressDAO.inc.php.
References getByPath().
| & PressDAO.getPresses | ( | $ | rangeInfo = null |
) |
Retrieve all presses.
Definition at line 135 of file PressDAO.inc.php.
Referenced by getNames().
| PressDAO.insertObject | ( | &$ | press | ) |
Insert a new press.
| $press | Press |
Definition at line 149 of file PressDAO.inc.php.
References getInsertPressId().
| PressDAO.newDataObject | ( | ) |
Construct a new data object corresponding to this DAO.
Definition at line 62 of file PressDAO.inc.php.
Referenced by _fromRow().
| PressDAO.PressDAO | ( | ) |
Constructor
Definition at line 21 of file PressDAO.inc.php.
| PressDAO.pressExistsByPath | ( | $ | path | ) |
Check if a press exists with a specified path.
| $path | the path for the press |
Definition at line 89 of file PressDAO.inc.php.
| PressDAO.resequencePresses | ( | ) |
Sequentially renumber each press according to their sequence order.
Definition at line 257 of file PressDAO.inc.php.
| PressDAO.updateObject | ( | &$ | press | ) |
1.7.1