Update class for step 3004.  
 More...
| 
Static Public Member Functions | 
| static | createPathFromId ($a_container_id, $a_name) | 
Detailed Description
Update class for step 3004. 
Definition at line 8 of file class.ilDBUpdate3004.php.
Member Function Documentation
  
  | 
        
          | static ilDBUpdate3004::createPathFromId | ( |  | $a_container_id, |  
          |  |  |  | $a_name |  
          |  | ) |  |  |  | static | 
 
Definition at line 10 of file class.ilDBUpdate3004.php.
References $path.
        {
                $max_exponent = 3;
                $st_factor = 100;
                
                $found = false;
                $num = $a_container_id;
                for($i = $max_exponent; $i > 0;$i--)
                {
                        $factor = pow($st_factor, $i);
                        if(($tmp = (int) ($num / $factor)) or $found)
                        {
                                $num = $num % $factor;
                                $found = true;
                        }       
                }
                {
                        $path_string = (implode(
'/',
$path).
'/');
                }
                return $path_string.$a_name.'_'.$a_container_id;
        }
 
 
The documentation for this class was generated from the following file: