booked/WebServices/ResourcesWebService.php
/**
	 * @name GetAllResources
	 * @description Loads all resources
	 * @response ResourcesResponse
	 * @return void
	 */
@name GetAllResources
@description Loads all resources
@response ResourcesResponse
@return void
@name GetAllResources @description Loads all resources @response ResourcesResponse @return void
public function GetAll()
	{
		$resources = $this->resourceRepository->GetResourceList();
		$resourceIds = array();
		foreach ($resources as $resource)
		{
			$resourceIds[] = $resource->GetId();
		}
		$attributes = $this->attributeService->GetAttributes(CustomAttributeCategory::RESOURCE, $resourceIds);
		$this->server->WriteResponse(new ResourcesResponse($this->server, $resources, $attributes));
	}
public function GetAll ( ) { $ resources = $ this -> resourceRepository -> GetResourceList ( ) ; $ resourceIds = array ( ) ; foreach ( $ resources as $ resource ) { $ resourceIds [ ] = $ resource -> GetId ( ) ; } $ attributes = $ this -> attributeService -> GetAttributes ( CustomAttributeCategory :: RESOURCE , $ resourceIds ) ; $ this -> server -> WriteResponse ( new ResourcesResponse ( $ this -> server , $ resources , $ attributes ) ) ; }
@name GetAllResources
 @description Loads all resources
 @response ResourcesResponse
 @return void
@name GetAllResources @description Loads all resources @response ResourcesResponse @return void