Пример #1
0
 /**
  * @param	$path
  * @param	$flags
  *
  * @return
  * @since	1.6
  */
 function url_stat($path, $flags = 0)
 {
     $now = time();
     $string =& JStringController::getRef(str_replace('string://', '', $path));
     $stat = array('dev' => 0, 'ino' => 0, 'mode' => 0, 'nlink' => 1, 'uid' => 0, 'gid' => 0, 'rdev' => 0, 'size' => strlen($string), 'atime' => $now, 'mtime' => $now, 'ctime' => $now, 'blksize' => '512', 'blocks' => ceil(strlen($string) / 512));
     return $stat;
 }
Пример #2
0
 /**
  * Get reference
  *
  * @return  mixed  False if not set, reference if it it exists
  *
  * @since   11.1
  */
 function getRef($reference)
 {
     $ref =& JStringController::_getArray();
     if (isset($ref[$reference])) {
         return $ref[$reference];
     } else {
         return false;
     }
 }