tests/Images.php
[Pman.Core] / tests / Images.php
1 <?php
2
3 require_once 'Pman.php';
4
5 class Pman_Core_tests_Images extends Pman
6 {
7      function get() {
8         // test...
9         echo '<PRE>';
10         require_once 'Pman/Core/Images.php';
11         //init();
12         
13         //$d = DB_DataObject::factory('')
14         
15         $ret = Pman_Core_Images::replaceImageURLS('
16                 <img src="http://www.roojs.com/index.php/Core/Images/Thumb/200x40/34/test.png">
17                 <img src="http://www.roojs.com/index.php/Images/34/test.png" width="100">
18                 <a href="http://www.roojs.com/index.php/Images/Download/34/test.png">test</a>
19                 
20         ', 'http://roojs.com/index.php/');
21         echo htmlspecialchars($ret);
22         
23      }
24      function output()
25      {
26         exit;
27      }
28 }