(no description)
File Size: | 207 lines (8 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
deployment_repository:: (11 methods):
record_from_deployment()
deployments_from_records()
deployment_from_record()
save()
find()
exists()
delete()
delete_by_registration()
count_by_registration()
find_by_registration()
find_all_by_registration()
Class: deployment_repository - X-Ref
The deployment_repository class.record_from_deployment(deployment $deployment) X-Ref |
Create a valid record from a deployment instance. return: \stdClass a compatible record. param: deployment $deployment the deployment. |
deployments_from_records(array $records) X-Ref |
Create a list of deployments based on a list of records. return: deployment[] param: array $records an array of deployment records. |
deployment_from_record(\stdClass $record) X-Ref |
Create a valid deployment from a record. return: deployment the deployment instance. param: \stdClass $record the record. |
save(deployment $deployment) X-Ref |
Save a deployment to the store. return: deployment the saved deployment instance. param: deployment $deployment the deployment instance to save. |
find(int $id) X-Ref |
Find and return a deployment, by id. return: deployment|null param: int $id the id of the deployment to find. |
exists(int $id) X-Ref |
Determine whether a deployment exists in the repository. return: bool true if the deployment exists, false otherwise. param: int $id the identifier of the deployment |
delete(int $id) X-Ref |
Delete a deployment from the store. param: int $id the id of the deployment object to remove. |
delete_by_registration(int $registrationid) X-Ref |
Delete all deployments for the given registration. param: int $registrationid the registration id. |
count_by_registration(int $registrationid) X-Ref |
Return a count of how many deployments exists for a given application_registration. return: int the number of deployments found. param: int $registrationid the id of the application_registration instance. |
find_by_registration(int $registrationid, string $deploymentid) X-Ref |
Get a deployment based on its deploymentid and a for a given application registration id. return: deployment|null deployment if found, otherwise null. param: int $registrationid the id of the application_registration to which the deployment belongs. param: string $deploymentid the deploymentid of the deployment, as set by the platform. |
find_all_by_registration(int $registrationid) X-Ref |
Get all deployments for a given application registration id. return: deployment[]|null deployments if found, otherwise null. param: int $registrationid the id of the application_registration to which the deployment belongs. |