db/SqlBuilder.php
/**
     * Retrieve updated fields from updated object by compare to the reference object
     * @param object $ref_object
     * @param object $updated_object
     * @param bool $ignore_field
     */
Retrieve updated fields from updated object by compare to the reference object
@param object $ref_object
@param object $updated_object
@param bool $ignore_field
Retrieve updated fields from updated object by compare to the reference object @param object $ref_object @param object $updated_object @param bool $ignore_field
private function retrieveUpdatedFields($updated_object, $ref_object, $ignore_field = FALSE) {
        if (! is_object($updated_object)) {
            throw new \InvalidArgumentException('Invalid reference or updated object');
        }
        $fields = array();
        $vars = get_object_vars($updated_object);
        if ($vars) {
            foreach ($vars as $key => $value) {
                if ($key == $ignore_field) {
                    continue;
                }
                if (property_exists($ref_object, $key) && $ref_object->$key != $value) {
                    $fields[] = $key;
                }
            }
        }
        return $fields;
    }
private function retrieveUpdatedFields ( $ updated_object , $ ref_object , $ ignore_field = FALSE ) { if ( ! is_object ( $ updated_object ) ) { throw new \ InvalidArgumentException ( 'Invalid reference or updated object' ) ; } $ fields = array ( ) ; $ vars = get_object_vars ( $ updated_object ) ; if ( $ vars ) { foreach ( $ vars as $ key => $ value ) { if ( $ key == $ ignore_field ) { continue ; } if ( property_exists ( $ ref_object , $ key ) && $ ref_object -> $ key != $ value ) { $ fields [ ] = $ key ; } } } return $ fields ; }
Retrieve updated fields from updated object by compare to the reference object
 @param object $ref_object
 @param object $updated_object
 @param bool $ignore_field
Retrieve updated fields from updated object by compare to the reference object @param object $ref_object @param object $updated_object @param bool $ignore_field