Permalink
Browse files

Remove old classes

  • Loading branch information...
1 parent a247210 commit 1a0648b854504b814885f4ac167ca504d64e9340 @Artazor Artazor committed May 26, 2012
Showing with 0 additions and 5,492 deletions.
  1. +0 −134 .old/asset/asset.class.php
  2. +0 −9 .old/asset/css/css.class.php
  3. +0 −3 .old/asset/css/view.php
  4. +0 −34 .old/asset/js/js.class.php
  5. +0 −17 .old/asset/js/rpc.js
  6. +0 −1 .old/asset/js/rpc.php
  7. +0 −2 .old/asset/js/view.php
  8. 0 .old/asset/less/.uppercase
  9. +0 −57 .old/asset/less/less.class.php
  10. +0 −1 .old/asset/less/view.php
  11. +0 −76 .old/asset/manager/manager.class.php
  12. +0 −34 .old/cache/cache.class.php
  13. +0 −118 .old/cache/file/file.class.php
  14. +0 −8 .old/collection/collection.class.php
  15. +0 −25 .old/common/application/application.class.php
  16. +0 −7 .old/common/application/content.php
  17. +0 −1 .old/common/application/copyright.php
  18. +0 −3 .old/common/application/footer.php
  19. +0 −21 .old/common/application/header.php
  20. +0 −14 .old/common/application/login.php
  21. +0 −5 .old/common/application/logo.php
  22. BIN .old/common/application/logo.png
  23. +0 −30 .old/common/application/menu.php
  24. +0 −1 .old/common/application/title.php
  25. +0 −65 .old/common/application/view.css
  26. +0 −20 .old/common/application/view.js
  27. +0 −341 .old/common/application/view.less
  28. +0 −10 .old/common/application/view.php
  29. +0 −74 .old/common/authenticator/authenticator.class.php
  30. +0 −12 .old/common/file_upload/file_upload.class.php
  31. +0 −22 .old/common/logon_page/logon_page.class.php
  32. +0 −3 .old/common/logon_page/roles.php
  33. +0 −1 .old/common/logon_page/view.js
  34. +0 −16 .old/common/logon_page/view.php
  35. +0 −7 .old/common/page/page.class.php
  36. +0 −13 .old/config/config.class.php
  37. +0 −1 .old/controller/as_child.php
  38. +0 −1 .old/controller/as_current.php
  39. +0 −1 .old/controller/as_parent.php
  40. +0 −8 .old/controller/as_table.php
  41. +0 −3 .old/controller/as_tile.php
  42. +0 −7 .old/controller/as_tiles.php
  43. +0 −35 .old/controller/configurator/configurator.class.php
  44. +0 −437 .old/controller/controller.class.php
  45. +0 −17 .old/controller/dummy/dummy.class.php
  46. +0 −13 .old/controller/dummy/view.php
  47. +0 −1 .old/controller/icon.php
  48. +0 −60 .old/controller/iterator/iterator.class.php
  49. +0 −28 .old/controller/routes/routes.class.php
  50. +0 −29 .old/controller/subrange/subrange.class.php
  51. 0 .old/controller/subrange/table_header.php
  52. +0 −1 .old/controller/title.php
  53. +0 −1 .old/controller/view.php
  54. +0 −69 .old/downloader/downloader.class.php
  55. +0 −1 .old/exception/details.php
  56. +0 −172 .old/exception/exception.class.php
  57. +0 −42 .old/exception/stack_trace.php
  58. +0 −20 .old/exception/view.js
  59. +0 −70 .old/exception/view.less
  60. +0 −8 .old/exception/view.php
  61. +0 −22 .old/exception/wrapper/wrapper.class.php
  62. +0 −14 .old/factory/callable/callable.class.php
  63. +0 −69 .old/factory/class/class.class.php
  64. +0 −15 .old/factory/factory.class.php
  65. +0 −9 .old/factory/instance/instance.class.php
  66. +0 −7 .old/field/auto/auto.class.php
  67. +0 −7 .old/field/boolean/boolean.class.php
  68. +0 −6 .old/field/collection/collection.class.php
  69. +0 −6 .old/field/email/email.class.php
  70. +0 −82 .old/field/field.class.php
  71. 0 .old/field/guid/.uppercase
  72. +0 −6 .old/field/guid/guid.class.php
  73. +0 −7 .old/field/integer/integer.class.php
  74. 0 .old/field/ip/.uppercase
  75. +0 −6 .old/field/ip/ip.class.php
  76. 0 .old/field/sha1/.uppercase
  77. +0 −7 .old/field/sha1/sha1.class.php
  78. +0 −7 .old/field/string/string.class.php
  79. +0 −8 .old/field/text/text.class.php
  80. +0 −7 .old/field/unixtime/unixtime.class.php
  81. +0 −8 .old/file_system/file_system.class.php
  82. +0 −64 .old/generator/generator.class.php
  83. +0 −133 .old/itself.php
  84. +0 −25 .old/lib/lib.class.php
  85. +0 −11 .old/list/list.class.php
  86. +0 −9 .old/loader/exception/class_not_found/class_not_found.class.php
  87. +0 −7 .old/loader/exception/exception.class.php
  88. +0 −7 .old/loader/exception/resource_not_found/resource_not_found.class.php
  89. +0 −184 .old/loader/loader.class.php
  90. +0 −66 .old/meta/meta.class.php
  91. +0 −5 .old/meta/model.php
  92. +0 −44 .old/meta/model_base.php
  93. +0 −4 .old/meta_cms/meta_cms.class.php
  94. +0 −90 .old/model/model.class.php
  95. +0 −3 .old/object/html5shim.php
  96. +0 −3 .old/object/javascripts.php
  97. +0 −155 .old/object/object.class.php
  98. +0 −28 .old/object/page_view.php
  99. +0 −4 .old/object/stylesheets.php
  100. +0 −1 .old/object/view.php
  101. +0 −62 .old/oxygen.class.php
  102. +0 −13 .old/reflector/reflector.class.php
  103. +0 −45 .old/router/iterator/iterator.class.php
  104. +0 −289 .old/router/router.class.php
  105. +0 −251 .old/scope/scope.class.php
  106. 0 .old/scope/view.php
  107. +0 −10 .old/scope_controller/scope_controller.class.php
  108. +0 −19 .old/serializer/serializer.class.php
  109. +0 −1 .old/serializer/view.php
  110. +0 −35 .old/session/session.class.php
  111. 0 .old/sql/.uppercase
  112. +0 −180 .old/sql/builder/builder.class.php
  113. +0 −12 .old/sql/collection/collection.class.php
  114. +0 −6 .old/sql/column/column.class.php
  115. +0 −9 .old/sql/columns/columns.class.php
  116. +0 −389 .old/sql/connection/connection.class.php
  117. +0 −6 .old/sql/data/data.class.php
  118. +0 −46 .old/sql/data_set/data_set.class.php
  119. +0 −20 .old/sql/database/database.class.php
  120. +0 −4 .old/sql/exception/exception.class.php
  121. +0 −6 .old/sql/key/key.class.php
  122. +0 −6 .old/sql/relation/relation.class.php
  123. +0 −6 .old/sql/relations/relations.class.php
  124. +0 −60 .old/sql/result_set/iterator/iterator.class.php
  125. +0 −25 .old/sql/result_set/result_set.class.php
  126. +0 −7 .old/sql/row/row.class.php
  127. +0 −1 .old/sql/scripts/.htaccess
  128. +0 −71 .old/sql/scripts/auth.sql
  129. +0 −55 .old/sql/scripts/file_upload.sql
  130. +0 −8 .old/sql/scripts/scripts.class.php
  131. +0 −28 .old/sql/source/source.class.php
  132. +0 −122 .old/sql/sql.class.php
  133. +0 −128 .old/sql/table/table.class.php
  134. 0 .old/utils/csv/.uppercase
  135. +0 −33 .old/utils/csv/csv.class.php
  136. +0 −15 .old/utils/date/date.class.php
  137. +0 −7 .old/utils/icon/icon.class.php
  138. +0 −27 .old/utils/text/text.class.php
  139. 0 .old/utils/url/.uppercase
  140. +0 −20 .old/utils/url/url.class.php
  141. 0 .old/utils/yaml/.uppercase
  142. +0 −13 .old/utils/yaml/yaml.class.php
  143. +0 −26 .old/validation/context/context.class.php
  144. +0 −8 .old/validation/item/error/error.class.php
  145. +0 −18 .old/validation/item/item.class.php
  146. +0 −10 .old/validation/item/notice/notice.class.php
  147. +0 −9 .old/validation/item/warning/warning.class.php
  148. +0 −11 .old/validation/rule/field/field.class.php
  149. +0 −8 .old/validation/rule/field/range/range.class.php
  150. +0 −11 .old/validation/rule/rule.class.php
  151. +0 −10 .old/validation/validation.class.php
@@ -1,134 +0,0 @@
-<?
- abstract class Oxygen_Asset extends Oxygen_Object {
-
- public $list = array();
- public $added = array();
- public $pipeline = false;
- public $process = false;
- public $ext = '';
- private $hash = false;
- private $compiled = false;
-
- public $cache = false;
- private $loader = false;
- private $manager = null;
-
- const URL_REGEX = "|^https?://|";
- const REMOTE_KEY_TEMPLATE = 'cached-url-{0}';
-
- const LOCAL_RESOURCE = 0;
- const REMOTE_RESOURCE = 1;
-
- const UNKNOWN_ASSET_TYPE = 'Unknown asset type';
-
- public function __construct($ext) {
- $this->ext = $ext;
- }
-
- public function __complete() {
- $this->cache = $this->scope->cache;
- $this->loader = $this->scope->loader;
- $this->manager = $this->scope->assets;
- }
-
-
- public function addRemote($url) {
- if(isset($this->list[$url])) return;
- $assets = array();
- $assets[$this->ext] = array(self::REMOTE_RESOURCE, $url);
- $this->list[$url] = (object)array(
- 'assets' => $assets,
- 'component' => false,
- 'class' => false,
- 'name' => false
- );
- $this->invalidate();
- }
-
- // Calculate hash code on basis of
- // paths and their modification times
- public function getHashCode() {
- if($this->hash === false) {
- $toHash = array();
- $list = $this->list;
- ksort($list);
- foreach($list as $key=>$item) {
- $toHash[] = $key;
- list($type, $path) = $item->assets[$this->ext];
- if($type == self::LOCAL_RESOURCE) {
- $toHash[] = filemtime($path);
- }
- }
- $str = implode(':', $toHash);
- $this->hash = md5($str);
- }
- return $this->hash;
- }
-
- protected function getCachedUrlContent($url) {
- $cache = $this->cache;
- $key = Oxygen_Utils_Text::format(self::REMOTE_KEY_TEMPLATE,$url);
- if(!isset($cache[$key])){
- return $cache[$key] = file_get_contents($url);
- } else {
- return $cache[$key];
- }
- }
-
- protected function processOne($item) {
- list($type, $path) = $item->assets[$this->ext];
- if($type === self::REMOTE_RESOURCE){
- return $this->getCachedUrlContent($path);
- } else {
- return file_get_contents($path);
- }
- }
-
- protected function process($source) {
- return $source;
- }
-
- public function compile() {
- if(!$this->compiled) {
- $hash = $this->getHashCode();
- $cache = $this->cache;
- if(!isset($cache[$hash])) {
- $source = array();
- foreach ($this->list as $key => $asset) {
- $source[] = $this->processOne($asset);
- }
- $source = implode("\n",$source);
- $cache[$hash] = $this->process($source);
- }
- $this->compiled = true;
- }
- return $this->hash;
- }
-
- public function getCompiledUri() {
- return $this->scope->OXYGEN_ROOT_URI . '/' . $this->compile() . $this->ext;
- }
-
- protected function invalidate() {
- $this->hash = false;
- $this->compiled = false;
- }
-
- public function add($call, $key = false) {
- if ($key === false) {
- $key = $this->manager->getKey($call);
- }
- if(isset($this->added[$key])) return;
- $this->added[$key] = true;
- $path = $this->loader->pathFor($call->class, $call->name . $this->ext);
- if($path !== false) {
- $key = $path . '::' . $call->component;
- if (!isset($this->list[$key])){
- $call->assets[$this->ext] = array(self::LOCAL_RESOURCE, $path);
- $this->list[$key] = $call;
- $this->invalidate();
- }
- }
- }
- }
-?>
@@ -1,9 +0,0 @@
-<?
-
- class Oxygen_Asset_CSS extends Oxygen_Asset {
- public function __construct() {
- parent::__construct('.css');
- }
- }
-
-?>
@@ -1,3 +0,0 @@
-<style>
-<?=$this->cache[$this->compile()]?>
-</style>
@@ -1,34 +0,0 @@
-<?
-
- class Oxygen_Asset_JS extends Oxygen_Asset {
-
- const JQUERY_WRAPPER = 'jQuery(function($){
- var templateClass="{0}"
- , componentClass="{1}"
- , templateName="{2}";
- $(templateClass).each(function(){
- var $this = $(this);
- {3}
- });
- })';
- public function __construct() {
- parent::__construct('.js');
- }
- protected function processOne($item) {
- $source = parent::processOne($item);
- list($type, $path) = $item->assets[$this->ext];
- if($type === self::REMOTE_RESOURCE){
- return $source;
- } else {
- return Oxygen_Utils_Text::format(
- self::JQUERY_WRAPPER,
- $item->component !== false ? '.' . $item->component : 'body',
- $item->class,
- $item->name,
- $source
- );
- }
- }
- }
-
-?>
View
@@ -1,17 +0,0 @@
-$.oxygen = function(options) {
- var defaults = {
- component: 'Oxygen_Page_Missing',
- method: 'getData',
- args: {},
- callback: function (err,data) {}
- };
- options = _.extend(defaults, options);
- $.post({
- url: OXYGEN_ROOT,
- headers: {
- 'X-Oxygen-Request': 'POST',
- 'X-Oxygen-Class': ''
- }
-
- })
-};
@@ -1 +0,0 @@
-<!-- This page will use Oxygen RPC Subsystem -->
@@ -1,2 +0,0 @@
-<script async language="javascript" type="text/javascript" src="<?=$this->getCompiledUri()?>">
-</script>
No changes.
@@ -1,57 +0,0 @@
-<?
-
- class Oxygen_Asset_LESS extends Oxygen_Asset {
-
- public static function __class_construct($scope) {
- $scope->lib->load('lessphp/lessc.inc.php');
- }
-
- private $less = null;
-
- const VIRTUAL_WRAPPER = '.{0}{{1}}';
- const CSS_URL = 'url({0})';
-
- public function __construct() {
- parent::__construct('.less');
- $this->less = new lessc();
- $this->less->registerFunction('icon', array($this, 'icon'));
- $this->less->registerFunction('virtual', array($this, 'resource'));
- }
-
- public function icon($parsed) {
- list($type, $value) = $parsed;
- $this->__assert($type === 'keyword', 'Invalid icon code');
- $this->__assert(preg_match("/^[a-z_]+$/", $value), 'Invalid icon code');
- return Oxygen_Utils_Text::format(
- self::CSS_URL,
- $this->scope->assets->getIcon($value)
- );
- }
-
- public function resource($parsed) {
- $resource = trim($parsed[2][0][1],'\'');
- $class = trim($parsed[2][1][1],'\'');
- return 'url('.$this->scope->loader->urlFor($class, $resource).')';
- }
-
- public function processOne($asset) {
- $source = parent::processOne($asset);
- $source = preg_replace("/resource\((.*)\)/", "virtual(\\1,'{$asset->class}')", $source);
- if($asset->component !== false){
- return Oxygen_Utils_Text::format(
- self::VIRTUAL_WRAPPER,
- $asset->component,
- $source
- );
- } else {
- return $source;
- }
- }
-
- protected function process($source) {
- return $this->less->parse($source);
- }
- }
-
-
-?>
@@ -1 +0,0 @@
-<link rel="stylesheet" type="text/css" href="<?=$this->getCompiledUri()?>"/>
@@ -1,76 +0,0 @@
-<?
-
- class Oxygen_Asset_Manager extends Oxygen_Object {
-
- const ASSET_REDEFINED = 'Asset {0} is already defined';
- const ASSET_UNDEFINED = 'Asset {0} is undefined';
-
- private $assets = array();
- private $added = array();
-
- public function getIcon($name){
- $relative = 'silk-icons/icons/' . $name . '.png';
- $path = $this->scope->lib->path($relative);
- $this->__assert(file_exists($path),'Icon not found');
- return $this->scope->lib->url($relative);
- }
-
- public function register($name, $class){
- $this->__assert(!isset($this->assets[$name]), self::ASSET_REDEFINED, $name);
- $this->assets[$name] = $this->new_($class);
- }
-
- public function handled($path) {
- if (!preg_match('#^/([a-f0-9]{32})\.(js|css|less)$#',$path, $match)) return false;
- $key = $match[1];
- $type = $match[2];
- if(isset($this->scope->cache[$key])){
- $last_modified = 'Tuesday, 1 Mar 2012 00:00:00 GMT';
- $etag = '"'.$key.'"';
- header("Last-Modified: $last_modified");
- header("ETag: $etag");
- $if_modified_since = isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) ?
- stripslashes($_SERVER['HTTP_IF_MODIFIED_SINCE']) :
- false;
- $if_none_match = isset($_SERVER['HTTP_IF_NONE_MATCH']) ?
- stripslashes($_SERVER['HTTP_IF_NONE_MATCH']) :
- false;
- if (!$if_modified_since && !$if_none_match
- || $if_none_match && $if_none_match != $etag
- || $if_modified_since && $if_modified_since != $last_modified
- ) {
- switch($type){
- case 'css':
- case 'less': header('Content-Type: text/css'); break;
- case 'js': header('Content-Type: text/javascript'); break;
- }
- $this->scope->cache->echoValue($key);
- } else {
- header('HTTP/1.0 304 Not Modified');
- }
- } else {
- header('HTTP/1.0 503 Please refresh the WebPage');
- };
- return true;
- }
-
- public function getKey($call) {
- return $call->class . '::' . $call->name . '::' . $call->component;
- }
-
- public function add($call) {
- $key = $this->getKey($call);
- if (isset($this->added[$key])) return;
- $this->added[$key] = true;
- foreach ($this->assets as $asset) {
- $asset->add($call, $key);
- }
- }
-
- public function __get($name){
- $this->__assert(isset($this->assets[$name]), self::ASSET_UNDEFINED, $name);
- return $this->assets[$name];
- }
- }
-
-?>
@@ -1,34 +0,0 @@
-<?
-
- abstract class Oxygen_Cache extends Oxygen_Object implements ArrayAccess {
-
- public abstract function load($key);
- public abstract function store($key, $value);
- public abstract function exists($key);
- public abstract function remove($key);
- public abstract function echoValue($key);
- public abstract function storeAll($key, $array);
- public abstract function serialize($key, $value);
- public abstract function deserialize($key);
- public abstract function age($key);
-
- public function offsetGet($key){
- return $this->load($key);
- }
-
- public function offsetSet($key, $value) {
- return $this->store($key, $value);
- }
-
- public function offsetExists($key) {
- return $this->exists($key);
- }
-
- public function offsetUnset($key) {
- return $this->remove($key);
- }
-
- }
-
-
-?>
Oops, something went wrong. Retry.

0 comments on commit 1a0648b

Please sign in to comment.