public function forShare($table_name = null, $glue = ',')
    {
        if (is_null($this->forShare)) {
            $glue = strtoupper($glue);
            $this->forShare = new QueryElement('FOR SHARE', $table_name ? 'OF ' . $table_name : null, "$glue ");
        } else {
            $this->forShare->append($table_name);
        }

        return $this;
    }
public function forShare($table_name = null, $glue = ',')
    {
        if (is_null($this->forShare)) {
            $glue = strtoupper($glue);
            $this->forShare = new QueryElement('FOR SHARE', $table_name ? 'OF ' . $table_name : null, "$glue ");
        } else {
            $this->forShare->append($table_name);
        }

        return $this;
    }
public function forShare ( $ table_name = null , $ glue = ',' ) { if ( is_null ( $ this -> forShare ) ) { $ glue = strtoupper ( $ glue ) ; $ this -> forShare = new QueryElement ( 'FOR SHARE' , $ table_name ? 'OF ' . $ table_name : null , "$glue " ) ; } else { $ this -> forShare -> append ( $ table_name ) ; } return $ this ; }
Sets the FOR SHARE lock on select's output row

@param   string $table_name The table to lock
@param   string $glue       The glue by which to join the conditions. Defaults to ',' .

@return  PostgresqlQuery  FOR SHARE query element

@since   2.0
Sets the FOR SHARE lock on select s output row