Planner Utility
The
Planner
can be used to easily interact programmatically with the content planner.
- class PlannerUtility
-
- Fully qualified name
-
\Xima\
Xima Typo3Content Planner\ Utility\ Planner Utility
Utility class to use content planner functionalities.
- updateStatusForRecord ( $table, $uid, $status, $assignee = null)
-
Simple function to update the status of a record.
- param string $table
-
Table name of the record.
- param int $uid
-
UID of the record.
- param \Xima\XimaTypo3ContentPlanner\Domain\Model\Status|int|string $status
-
Status object, UID or title of the status.
- param \Xima\XimaTypo3ContentPlanner\Domain\Model\BackendUser|int|string|null $assignee
-
Optional user object, UID or username of the assignee.
- returntype
-
void
- getStatusOfRecord ( $table, $uid)
-
Simple function to get the status of a record.
- param string $table
-
Table name of the record.
- param int $uid
-
UID of the record.
- returntype
-
\Xima\
Xima Typo3Content Planner\ Domain\ Model\ Status |null
- getStatus ( $identifier)
-
Simple function to get a status.
- param int|string $identifier
-
UID or title of the status record.
- returntype
-
\Xima\
Xima Typo3Content Planner\ Domain\ Model\ Status |null
- getCommentsOfRecord ( $table, $uid, $raw = false)
-
Simple function to fetch all comments of a record.
- param string $table
-
Table name of the record.
- param int $uid
-
UID of the record.
- param bool $raw
-
Get raw comment records instead of optimized DTOs.
- returntype
-
array
- addCommentsToRecord ( $table, $uid, $comments, $author = null)
-
Simple function to fetch all comments of a record.
- param string $table
-
Table name of the record.
- param int $uid
-
UID of the record.
- param array|string $comments
-
Single comment string or array of multiple comments in a row.
- param \Xima\XimaTypo3ContentPlanner\Domain\Model\BackendUser|int|string|null $author
-
Optional user object, UID or username of the author.
- returntype
-
void