classes.other/PSM.php
/*Will convert the capsule into a PSM variable.*/
Will convert the capsule into a PSM variable.
Will convert the capsule into a PSM variable .
public function decapsule($string)
        {
          $pieces = explode('{',$string);
          if ($pieces[0] != 'PSM_DB_CAPSULE') $psm->Error('<b>Decapsule()</b> called', 'Capsule type not = <b>PSM_DB_CAPSULE</b>');
          $capsule_data = $pieces[1];
          $capsule_data = rtrim($capsule_data,'}');
          $split_capdata = explode('::', $capsule_data);
          if (count($split_capdata) != 4) $psm->Error('<b>Decapsule()</b> called', 'Capsule split data not = <b>4</b> pieces of string data');
          $cstring = "{$split_capdata[0]} {$split_capdata[1]} {$split_capdata[2]} {$split_capdata[3]}";
          $this->connect($cstring);
        }
public function decapsule ( $ string ) { $ pieces = explode ( '{' , $ string ) ; if ( $ pieces [ 0 ] != 'PSM_DB_CAPSULE' ) $ psm -> Error ( '<b>Decapsule()</b> called' , 'Capsule type not = <b>PSM_DB_CAPSULE</b>' ) ; $ capsule_data = $ pieces [ 1 ] ; $ capsule_data = rtrim ( $ capsule_data , '}' ) ; $ split_capdata = explode ( '::' , $ capsule_data ) ; if ( count ( $ split_capdata ) != 4 ) $ psm -> Error ( '<b>Decapsule()</b> called' , 'Capsule split data not = <b>4</b> pieces of string data' ) ; $ cstring = " { $ split_capdata [ 0 ] } { $ split_capdata [ 1 ] } { $ split_capdata [ 2 ] } { $ split_capdata [ 3 ] } " ; $ this -> connect ( $ cstring ) ; }
Will convert the capsule into a PSM variable.
Will convert the capsule into a PSM variable .
// Doing a simple resolve to make sure it's a PSM_DB_CAPSULE. // Managing the data given from the capsule.