public function from($resources)
    {
        settype($resources, 'array');

        //Prepent the resource prefix
        foreach ($resources as &$resource) {
            if (strpos($resource, $this->_prefix) !== 0) {
                $resource = $this->_prefix.$resource;
            }
        }

        $this->from = array_unique(array_merge($this->from, $resources));

        return $this;
    }
public function from($resources)
    {
        settype($resources, 'array');

        //Prepent the resource prefix
        foreach ($resources as &$resource) {
            if (strpos($resource, $this->_prefix) !== 0) {
                $resource = $this->_prefix.$resource;
            }
        }

        $this->from = array_unique(array_merge($this->from, $resources));

        return $this;
    }
public function from ( $ resources ) { settype ( $ resources , 'array' ) ; //Prepent the resource prefix foreach ( $ resources as & $ resource ) { if ( strpos ( $ resource , $ this -> _prefix ) !== 0 ) { $ resource = $ this -> _prefix . $ resource ; } } $ this -> from = array_unique ( array_merge ( $ this -> from , $ resources ) ) ; return $ this ; }
Built the from clause of the query.

@param array|string $resources A string or array of resource names

@return AnDomainQuery
Built the from clause of the query .