Skip to content
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,5 @@ Examples/panini_stickers/upload/*
Examples/panini_stickers/output_data/*

Examples/adventureWorks/output_data/adventureworks.rdf.ttl

.DS_Store
23 changes: 23 additions & 0 deletions custom/conversions.class.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php
/*
* Class for custom conversion methods
*/
class Conversions {
/*
* Converts a value from feet to metres
*/
public static function feet_to_metres($value) {
return ($value * 0.3048);
}

public static function metres_to_feet($value) {
return ($value * 3.2808);
}

/*
* Example pass-through function
*/
public static function mirror($value) {
return $value;
}
}
Loading