프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$collection | |||
$db | ADODB_mysqli | Database connection instance |
메소드 | 설명 | |
---|---|---|
__construct ( ADODB_mysqli $db ) | Constructor | |
all ( boolean $ignoreCache = false, array $criteria = null ) : |
Gets all projects | |
checkPermission ( string $projectId, array $criteria ) : boolean | mixed | Checks if user has permissions to project in environment or account scope | |
findByKey ( string $key = null, array $criteria = null, $ignoreCache = false ) : |
Finds projects by key It searches by name or billing number | |
get ( string $projectId, boolean $ignoreCache = false, array $criteria = null ) : |
Gets a specified project | |
getAccountProjects ( integer $accountId, string $query = null ) : |
Gets available projects for account scope | |
getFarmsList ( string $projectId ) : array | Get the list of the farms which are assigned to specified project | |
getUsedInEnvironment ( integer $envId ) : array | Gets the list of projects within environment |
메소드 | 설명 | |
---|---|---|
parseFindCriteria ( array $criteria, string &$join, string &$where ) | Parses common criteria |
public __construct ( ADODB_mysqli $db ) | ||
$db | ADODB_mysqli | Database connection instance |
public all ( boolean $ignoreCache = false, array $criteria = null ) : |
||
$ignoreCache | boolean | optional Should it ignore cache or not |
$criteria | array | optional Search criteria ['envId' => '', 'accountId' => '', 'accountId' => ''] |
리턴 | Returns collection of all ProjectEntity objects |
public findByKey ( string $key = null, array $criteria = null, $ignoreCache = false ) : |
||
$key | string | optional Search key |
$criteria | array | optional Search criteria ['envId' => '', 'accountId' => '', 'accountId' => ''] |
리턴 | Returns collection of the ProjectEntity objects |
public get ( string $projectId, boolean $ignoreCache = false, array $criteria = null ) : |
||
$projectId | string | The identifier of the project |
$ignoreCache | boolean | optional Should it ignore cache or not |
$criteria | array | optional Search criteria ['envId' => '', 'accountId' => ''] |
리턴 | Returns the ProjectEntity on success or null if it does not exist. |
public getAccountProjects ( integer $accountId, string $query = null ) : |
||
$accountId | integer | Current user object |
$query | string | optional Search criteria |
리턴 |
public getFarmsList ( string $projectId ) : array | ||
$projectId | string | The UUID of the project |
리턴 | array | Returns the array looks like [farm_id => name] |
public getUsedInEnvironment ( integer $envId ) : array | ||
$envId | integer | Identifier of the Environment |
리턴 | array | Returns array of the ProjectEntity objects |
protected ArrayCollection,Scalr\Model\Collections $collection | ||
리턴 |