public function pluck($column) {

		$plucked = [];

		while(parent :: valid()) {
            
            $current = parent :: current();

            if(true === is_array($column)) {

            	$tmp = $current;
            	$insert = true;

            	foreach($column as $index) {

            		if(false === isset($tmp[$index])) {
            			
            			$insert = false;
            			break;
            		}

            		$tmp = $tmp[$index];
            	}

            	if(true === $insert) {
            		$plucked[] = $tmp;
            	}
            }

            if(true === isset($current[$column])) {
            	$plucked[] = $current[$column];
            }

            parent :: next();
        }

        switch($this -> convert) {

			case self :: TYPE_ARRAY: return $plucked;
			case self :: TYPE_OBJECT: return (object) $plucked;
			case self :: TYPE_JSON: return json_encode($plucked);
		}
	}
public function pluck($column) {

		$plucked = [];

		while(parent :: valid()) {
            
            $current = parent :: current();

            if(true === is_array($column)) {

            	$tmp = $current;
            	$insert = true;

            	foreach($column as $index) {

            		if(false === isset($tmp[$index])) {
            			
            			$insert = false;
            			break;
            		}

            		$tmp = $tmp[$index];
            	}

            	if(true === $insert) {
            		$plucked[] = $tmp;
            	}
            }

            if(true === isset($current[$column])) {
            	$plucked[] = $current[$column];
            }

            parent :: next();
        }

        switch($this -> convert) {

			case self :: TYPE_ARRAY: return $plucked;
			case self :: TYPE_OBJECT: return (object) $plucked;
			case self :: TYPE_JSON: return json_encode($plucked);
		}
	}
public function pluck ( $ column ) { $ plucked = [ ] ; while ( parent :: valid ( ) ) { $ current = parent :: current ( ) ; if ( true === is_array ( $ column ) ) { $ tmp = $ current ; $ insert = true ; foreach ( $ column as $ index ) { if ( false === isset ( $ tmp [ $ index ] ) ) { $ insert = false ; break ; } $ tmp = $ tmp [ $ index ] ; } if ( true === $ insert ) { $ plucked [ ] = $ tmp ; } } if ( true === isset ( $ current [ $ column ] ) ) { $ plucked [ ] = $ current [ $ column ] ; } parent :: next ( ) ; } switch ( $ this -> convert ) { case self :: TYPE_ARRAY : return $ plucked ; case self :: TYPE_OBJECT : return ( object ) $ plucked ; case self :: TYPE_JSON : return json_encode ( $ plucked ) ; } }
Plucks a column from a resultset
@param string|integer $column
@return new sFire\DB\Resultset
Plucks a column from a resultset