$baseURL
$baseURL : null|array
Base API URL
Base API URL comprised of environment variables passed to the ORM constructor.
ORM Account Client
Communicates with an ORM API to preform account operations.
$orm : null|\OpenResourceManager\ORM
ORM Connection
The current ORM connection.
__construct(\OpenResourceManager\ORM $orm)
Client Constructor
Constructs a client.
\OpenResourceManager\ORM | $orm |
getORM() : \OpenResourceManager\ORM
Get ORM Connection
Returns the current ORM object
store(string $identifier, string $username, string $name_prefix = null, string $name_first, string $name_middle = null, string $name_last, string $name_postifx = null, string $name_phonetic = null, integer $primary_duty_id = null, string $primary_duty_code = null, boolean $should_propagate_password = null, \DateTime $expires_at = null, boolean $disabled = null, \DateTime $birth_date = null, string $load_status_code = null, integer $load_status_id = null) : \Unirest\Response
Store Account
Create or update an account, by either it's username, identifier.
string | $identifier | |
string | $username | |
string | $name_prefix | |
string | $name_first | |
string | $name_middle | |
string | $name_last | |
string | $name_postifx | |
string | $name_phonetic | |
integer | $primary_duty_id | |
string | $primary_duty_code | |
boolean | $should_propagate_password | |
\DateTime | $expires_at | |
boolean | $disabled | |
\DateTime | $birth_date | |
string | $load_status_code | |
integer | $load_status_id |
patch(string $identifier = null, string $username = null, string $name_prefix = null, string $name_first = null, string $name_middle = null, string $name_last = null, string $name_postifx = null, string $name_phonetic = null, integer $primary_duty_id = null, string $primary_duty_code = null, boolean $should_propagate_password = null, \DateTime $expires_at = null, boolean $disabled = null, \DateTime $birth_date = null, string $load_status_code = null, integer $load_status_id = null) : \Unirest\Response
Update Account
update an account, by either it's username, identifier.
string | $identifier | |
string | $username | |
string | $name_prefix | |
string | $name_first | |
string | $name_middle | |
string | $name_last | |
string | $name_postifx | |
string | $name_phonetic | |
integer | $primary_duty_id | |
string | $primary_duty_code | |
boolean | $should_propagate_password | |
\DateTime | $expires_at | |
boolean | $disabled | |
\DateTime | $birth_date | |
string | $load_status_code | |
integer | $load_status_id |
detachFromDuty(integer $id = null, string $identifier = null, string $username = null, integer $duty_id = null, string $code = null) : \Unirest\Response
Detach Account From Duty
Detach this account from a duty. Using either the account ID, identifier, or username with either the duty ID or code.
integer | $id | |
string | $identifier | |
string | $username | |
integer | $duty_id | |
string | $code |
attachToDuty(integer $id = null, string $identifier = null, string $username = null, integer $duty_id = null, string $code = null) : \Unirest\Response
Attach Account To Duty
Attach this account to a duty. Using either the account ID, identifier, or username with either the duty ID or code.
integer | $id | |
string | $identifier | |
string | $username | |
integer | $duty_id | |
string | $code |
detachFromSchool(integer $id = null, string $identifier = null, string $username = null, integer $school_id = null, string $code = null) : \Unirest\Response
Detach Account From School
Detach this account from a school. Using either the account ID, identifier, or username with either the school ID or code.
integer | $id | |
string | $identifier | |
string | $username | |
integer | $school_id | |
string | $code |
attachToSchool(integer $id = null, string $identifier = null, string $username = null, integer $school_id = null, string $code = null) : \Unirest\Response
Attach Account To School
Attach this account to a school. Using either the account ID, identifier, or username with either the school ID or code.
integer | $id | |
string | $identifier | |
string | $username | |
integer | $school_id | |
string | $code |
detachFromCourse(integer $id = null, string $identifier = null, string $username = null, integer $course_id = null, string $code = null) : \Unirest\Response
Detach Account From Course
Detach this account from a course. Using either the account ID, identifier, or username with either the course ID or code.
integer | $id | |
string | $identifier | |
string | $username | |
integer | $course_id | |
string | $code |
attachToCourse(integer $id = null, string $identifier = null, string $username = null, integer $course_id = null, string $code = null) : \Unirest\Response
Attach Account To Course
Attach this account to a course. Using either the account ID, identifier, or username with either the course ID or code.
integer | $id | |
string | $identifier | |
string | $username | |
integer | $course_id | |
string | $code |
detachFromDepartment(integer $id = null, string $identifier = null, string $username = null, integer $department_id = null, string $code = null) : \Unirest\Response
Detach Account From Department
Detach this account from a department. Using either the account ID, identifier, or username with either the department ID or code.
integer | $id | |
string | $identifier | |
string | $username | |
integer | $department_id | |
string | $code |
attachToDepartment(integer $id = null, string $identifier = null, string $username = null, integer $department_id = null, string $code = null) : \Unirest\Response
Attach Account To Department
Attach this account to a department. Using either the account ID, identifier, or username with either the department ID or code.
integer | $id | |
string | $identifier | |
string | $username | |
integer | $department_id | |
string | $code |
detachFromRoom(integer $id = null, string $identifier = null, string $username = null, integer $room_id = null, string $code = null) : \Unirest\Response
Detach Account From Room
Detach this account from a room. Using either the account ID, identifier, or username with either the room ID or code.
integer | $id | |
string | $identifier | |
string | $username | |
integer | $room_id | |
string | $code |
attachToRoom(integer $id = null, string $identifier = null, string $username = null, integer $room_id = null, string $code = null) : \Unirest\Response
Attach Account To Room
Attach this account to a room. Using either the account ID, identifier, or username with either the room ID or code.
integer | $id | |
string | $identifier | |
string | $username | |
integer | $room_id | |
string | $code |