DataObjects/Core_template.php
authorleon <leon@roojs.com>
Fri, 28 Jul 2023 07:17:58 +0000 (15:17 +0800)
committerleon <leon@roojs.com>
Fri, 28 Jul 2023 07:17:58 +0000 (15:17 +0800)
DataObjects/Core_template.php

index 144bf46..be1876c 100644 (file)
@@ -354,30 +354,6 @@ class Pman_Core_DataObjects_Core_template  extends DB_DataObject
     {
         return DB_DataObject::factory('core_templatestr');
     }
-    
-    function syncPhpGetText($pgdata)
-    {
-        
-        $ar = token_get_all(file_get_contents( $tmpl->currentTemplate  ));
-        foreach( $ar as $i=> $tok) {
-            if (!is_array($tok) || $tok[0] != T_CONSTANT_ENCAPSED_STRING) {
-                continue;
-            }
-            if ($i < 2) {
-                continue;
-            }
-            if (is_array($ar[$i-1]) || $ar[$i-1] != '(') {
-                continue;
-            }
-            if (!is_array($ar[$i-2]) || $ar[$i-2][1] != '_') {
-                continue;
-            }
-            $ct = $tok[1][0];
-            $words[] =  str_replace('\\'. $ct, $ct, trim($tok[1] , $ct));
-            
-        }
-        // create the template...
-    }
 
     function syncFileWord($pgdata, $filetype)
     {