PageRenderTime 49ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/system/engine/engine_library/imagetools.enginelib.php

https://bitbucket.org/threetopia/thtech
PHP | 39 lines | 23 code | 1 blank | 15 comment | 2 complexity | d8c3a4a544f0664402423c59f30e9f16 MD5 | raw file
Possible License(s): LGPL-2.1
  1. <?php
  2. /*
  3. * File name : imagetools.enignelib.php
  4. * Author : Jarrod Oberto
  5. * Site : http://phpimagemagician.jarrodoberto.com
  6. * Framework : thtech
  7. * Library type : Engine Library
  8. * Version : 1.0
  9. * License : (Creative Commons Attribution 3.0 Unported License) http://creativecommons.org/licenses/by/3.0/deed.en_US
  10. * Create Date : 29 Nov 2014
  11. * Modified Date : 29 Nov 2014
  12. * File Description : This file contains image tools class to be used by the framework and CMS system.
  13. *
  14. * For more license information please kindly open and read LICENSE.txt file
  15. */
  16. class GeoIPTools_EngineLibrary extends Systems
  17. {
  18. public function __construct()
  19. {
  20. //require_once(dirname(__FILE__).'/image_magician/php_image_magician.php');
  21. }
  22. public function image($file='',$param=array())
  23. {
  24. $magicianObj = new imageLib($file);
  25. if(!empty($param))
  26. {
  27. foreach($param as $key=>$val)
  28. {
  29. if(method_exists($magicianObj,$key))
  30. {
  31. call_user_method_array(array($magicianObj,$key), $val);
  32. }
  33. }
  34. }
  35. return $magicianObj;
  36. }
  37. }
  38. ?>