This class is an instantion of the Command class, that executes a command pertaining to fetching todo information, in the default case from the database. This class should only be instantiated by dispatchMBAPI() found in include/mbapi/mbapi.php. Something similar to the following XML should be passed to dispatchMBAPI() when you want to call the Gettodos command:
<mbapi> <command><!-- None --></command> <showXMLHeader><!-- None --></showXMLHeader> <params> <todoID><!-- int --></todoID> <userID><!-- int --></userID> <todoAssignedAdminID><!-- int --></todoAssignedAdminID> <todoIsPublic><!-- int --></todoIsPublic> <todoTitle><!-- string --></todoTitle> <todoDesc><!-- string --></todoDesc> <todoStatusID><!-- string/int --></todoStatusID> <todoPriority><!-- int --></todoPriority> <todoLinkFile><!-- string --></todoLinkFile> <todoLinkActionName><!-- string --></todoLinkActionName> <todoLinkName><!-- string --></todoLinkName> <todoLinkPk><!-- int --></todoLinkPk> <todoDateDueLessThan><!-- int --></todoDateDueLessThan> <todoDateDue><!-- int --></todoDateDue> <todoDateDueGreaterThan><!-- int --></todoDateDueGreaterThan> <todoDateCreatedLessThan><!-- int --></todoDateCreatedLessThan> <todoDateCreated><!-- int --></todoDateCreated> <todoDateCreatedGreaterThan><!-- int --></todoDateCreatedGreaterThan> <getAdminData><!-- int --></getAdminData> <getAuthorData><!-- int --></getAuthorData> <getAssociated><!-- int --></getAssociated> <sortDir><!-- None --></sortDir> <sortColumn><!-- None --></sortColumn> <recordOffset><!-- None --></recordOffset> <numRecords><!-- None --></numRecords> </params> </mbapi>
None
mbapi
command
showXMLHeader
params
todoID
The ID of the todo item to fetch. This will always select at most 1 todo item.
userID
The ID of the admin who authored the todo item.
todoAssignedAdminID
The Admin Assinged to todo item.
todoIsPublic
1 means todo item is public.
todoTitle
The short title of the todo item. This is searched with a LIKE statement.
todoDesc
The longer description of the todo item. This is searched with a LIKE statement.
todoStatusID
The string or integer representation of a status associated with the todo item.
todoPriority
The lower the int the higher the priority.
todoLinkFile
Link file name.
todoLinkActionName
Link Action Name.
todoLinkName
Link var name.
todoLinkPk
Link primairy key
todoDateDueLessThan
The maximum UNIX timestamp for when a todo is due.
todoDateDue
The exact UNIX timestamp for when a todo is due.
todoDateDueGreaterThan
The minimum UNIX timestamp for when a todo is due.
todoDateCreatedLessThan
The maximum UNIX timestamp for when a todo was created.
todoDateCreated
The exact UNIX timestamp for when a todo was created.
todoDateCreatedGreaterThan
The minimum UNIX timestamp for when a todo was created.
getAdminData
Set to 1 obtain all admin user data associated with the todo item.
getAuthorData
Set to 1 obtain all admin user data associated with the author of the todo item.
getAssociated
Set to 1 changed the userID, todoIsPublic and todoAssignedAdminID to MultOrClauses.
sortDir
sortColumn
recordOffset
numRecords