Scalr\Stats\CostAnalytics\Projects::parseFindCriteria PHP Method

parseFindCriteria() private method

Parses common criteria
private parseFindCriteria ( array $criteria, string &$join, string &$where )
$criteria array array of the query search criteria
$join string joins
$where string where part of the statement
    private function parseFindCriteria($criteria, &$join, &$where)
    {
        if (isset($criteria['accountId'])) {
            $join .= " JOIN account_ccs ac ON ac.cc_id = c.cc_id ";
            $where .= "\n                AND ac.account_id = " . $this->db->escape($criteria['accountId']) . "\n                AND p.shared = " . ProjectEntity::SHARED_WITHIN_ACCOUNT . "\n                AND p.account_id = " . $this->db->escape($criteria['accountId']) . "\n            ";
        }
    }