public static function getDatas(Logable $model, Logable $oldModel) {
		$diff = self::getLogDifference($model, $oldModel);
		
		$datas = array();
		foreach ($diff as $key) :
			$datas[] = array(
			    'key' => $key,
			    'new' => $model->{$key},
			    'old' => $oldModel->{$key},
			);
		endforeach;

		return $datas;
	}
public static function getDatas(Logable $model, Logable $oldModel) {
		$diff = self::getLogDifference($model, $oldModel);
		
		$datas = array();
		foreach ($diff as $key) :
			$datas[] = array(
			    'key' => $key,
			    'new' => $model->{$key},
			    'old' => $oldModel->{$key},
			);
		endforeach;

		return $datas;
	}
public static function getDatas ( Logable $ model , Logable $ oldModel ) { $ diff = self :: getLogDifference ( $ model , $ oldModel ) ; $ datas = array ( ) ; foreach ( $ diff as $ key ) : $ datas [ ] = array ( 'key' => $ key , 'new' => $ model -> { $ key } , 'old' => $ oldModel -> { $ key } , ) ; endforeach ; return $ datas ; }
Get the data needed to save an update post
@param \Log\Logable $model
@param \Log\Logable $oldModel
@return array Array of datas
Get the data needed to save an update post