FreenetIS
 All Classes Namespaces Functions Variables Pages
Public Member Functions | Protected Attributes | List of all members
Cloud_Model Class Reference
Inheritance diagram for Cloud_Model:
ORM

Public Member Functions

 get_all_clouds ()
 Function gets all cloud's names and ids.
 get_cloud_admins ($cloud_id=NULL)
 Gets admins of cloud.
 get_cloud_subnets ($cloud_id=NULL)
 Gets subnets of cloud.
 select_list_of_admins_not_in ($cloud_id=NULL)
 Gets list of admins which are not admins of cloud.
 select_list_of_subnets_not_in ($cloud_id=NULL)
 Gets list of subnets which are not in cloud.
 remove_admins ($cloud_id, $admin_ids)
 Removes admins from cloud.
 remove_subnets ($cloud_id, $subnet_ids)
 Removes admins from cloud.

Protected Attributes

 $has_and_belongs_to_many = array('subnets', 'users')

Member Function Documentation

Cloud_Model::get_all_clouds ( )

Function gets all cloud's names and ids.

Author
Ondřej Fibich
Returns
Mysql_Result
Cloud_Model::get_cloud_admins (   $cloud_id = NULL)

Gets admins of cloud.

Parameters
integer$cloud_id
Returns
Mysql_Result
Cloud_Model::get_cloud_subnets (   $cloud_id = NULL)

Gets subnets of cloud.

Parameters
integer$cloud_id
Returns
Mysql_Result
Cloud_Model::remove_admins (   $cloud_id,
  $admin_ids 
)

Removes admins from cloud.

Parameters
integer$cloud_idCloud
array$admin_idsArray of users ids
Cloud_Model::remove_subnets (   $cloud_id,
  $subnet_ids 
)

Removes admins from cloud.

Parameters
integer$cloud_idCloud
array$subnet_idsArray of users ids
Cloud_Model::select_list_of_admins_not_in (   $cloud_id = NULL)

Gets list of admins which are not admins of cloud.

Parameters
integer$cloud_id
Returns
array
Cloud_Model::select_list_of_subnets_not_in (   $cloud_id = NULL)

Gets list of subnets which are not in cloud.

Parameters
integer$cloud_id
Returns
array

The documentation for this class was generated from the following file: