src/Server/Asyn/Mysql/Miner.php
public function join($table, $criteria = null, $type = self::INNER_JOIN, $alias = null)
    {
        if (!$this->isJoinUnique($table, $alias)) {
            return $this;
        }

        if (is_string($criteria)) {
            $criteria = array($criteria);
        }

        $this->join[] = array('table' => $table,
            'criteria' => $criteria,
            'type' => $type,
            'alias' => $alias);

        return $this;
    }
public function join($table, $criteria = null, $type = self::INNER_JOIN, $alias = null)
    {
        if (!$this->isJoinUnique($table, $alias)) {
            return $this;
        }

        if (is_string($criteria)) {
            $criteria = array($criteria);
        }

        $this->join[] = array('table' => $table,
            'criteria' => $criteria,
            'type' => $type,
            'alias' => $alias);

        return $this;
    }
public function join ( $ table , $ criteria = null , $ type = self :: INNER_JOIN , $ alias = null ) { if ( ! $ this -> isJoinUnique ( $ table , $ alias ) ) { return $ this ; } if ( is_string ( $ criteria ) ) { $ criteria = array ( $ criteria ) ; } $ this -> join [ ] = array ( 'table' => $ table , 'criteria' => $ criteria , 'type' => $ type , 'alias' => $ alias ) ; return $ this ; }
Add a JOIN table with optional ON criteria.

@param  string $table table name
@param  string|array $criteria optional ON criteria
@param  string $type optional type of join, default INNER JOIN
@param  string $alias optional alias
@return Miner
Add a JOIN table with optional ON criteria .