Permalink
Browse files

Keep track of all uncommitted files

  • Loading branch information...
quincykwende committed Apr 12, 2013
1 parent 8745aac commit 79c7eb50dd6e02757556265624080f810040c392
Showing with 3,135 additions and 9,351 deletions.
  1. +0 −249 classes/associator.php
  2. +0 −31 classes/associator/checkboxes.php
  3. +0 −31 classes/associator/radios.php
  4. +2 −310 classes/builder/frontend.php
  5. +2 −8 classes/controller/accessdenied.php
  6. +3 −177 classes/controller/ajax.php
  7. +1 −1 classes/controller/associator.php
  8. +3 −174 classes/controller/auth.php
  9. +3 −14 classes/controller/authstatus.php
  10. +3 −314 classes/controller/builder.php
  11. +2 −36 classes/controller/cms.php
  12. +2 −287 classes/controller/csv.php
  13. +2 −41 classes/controller/csvimports.php
  14. +2 −340 classes/controller/customreel.php
  15. +2 −257 classes/controller/export.php
  16. +2 −66 classes/controller/file.php
  17. +3 −10 classes/controller/footer.php
  18. +2 −29 classes/controller/graph.php
  19. +3 −10 classes/controller/header.php
  20. +2 −9 classes/controller/headerfooter.php
  21. +0 −16 classes/controller/html.php
  22. +2 −10 classes/controller/initializer.php
  23. +11 −9 classes/controller/keepalive.php
  24. +2 −19 classes/controller/language.php
  25. +0 −160 classes/controller/lattice.php
  26. +3 −106 classes/controller/latticeviews.php
  27. +0 −76 classes/controller/layout.php
  28. +3 −212 classes/controller/list.php
  29. +2 −194 classes/controller/navigation.php
  30. +6 −5 classes/controller/preview.php
  31. +2 −65 classes/controller/publicmenu.php
  32. +2 −2 classes/controller/registration.php
  33. +6 −0 classes/controller/rest.php
  34. +2 −19 classes/controller/setup.php
  35. +8 −8 classes/controller/test.php
  36. +3 −335 classes/controller/usermanagement.php
  37. +2 −8 classes/controller/views.php
  38. +6 −0 classes/controller/xml.php
  39. +0 −44 classes/frontend.php
  40. +2 −217 classes/graph.php
  41. +2 −81 classes/graph/objectquery.php
  42. +2 −13 classes/initializer/cms.php
  43. +2 −27 classes/initializer/lattice.php
  44. +0 −57 classes/initializer/latticeauth.php
  45. +0 −264 classes/lattice.php
  46. +2 −258 classes/lattice/cms.php
  47. +2 −340 classes/lattice/cmsinterface.php
  48. +2 −68 classes/lattice/controller/associator.php
  49. +2 −109 classes/lattice/initializer.php
  50. +0 −122 classes/latticeauth/controller/registration.php
  51. +0 −368 classes/latticecms.php
  52. +0 −197 classes/latticeui.php
  53. +0 −9 classes/latticeurl.php
  54. +0 −152 classes/latticeutil.php
  55. +0 −368 classes/latticeview.php
  56. +5 −4 classes/model/association.php
  57. +4 −6 classes/model/content.php
  58. +70 −61 classes/model/file.php
  59. +5 −6 classes/model/initializedmodule.php
  60. +10 −8 classes/model/language.php
  61. +6 −4 classes/model/lattice.php
  62. +22 −21 classes/model/lattice/contentdriver.php
  63. +44 −38 classes/model/lattice/foreign.php
  64. +175 −137 classes/model/lattice/object.php
  65. +50 −43 classes/model/listcontainer.php
  66. +1,815 −1,524 classes/model/object.php
  67. +2 −3 classes/model/objectelementrelationship.php
  68. +60 −54 classes/model/objectmap.php
  69. +2 −12 classes/model/objectrelationship.php
  70. +1 −8 classes/model/objects/tag.php
  71. +1 −9 classes/model/objects/user.php
  72. +189 −163 classes/model/objecttype.php
  73. +1 −9 classes/model/rosetta.php
  74. +1 −7 classes/model/tag.php
  75. +12 −12 classes/model/user.php
  76. +0 −61 classes/navigation.php
  77. +9 −7 classes/response.php
  78. +13 −11 classes/session.php
  79. +0 −39 classes/utility/auth.php
  80. +0 −135 classes/view/csv.php
  81. +0 −36 classes/view/csvcontainer.php
  82. +1 −1 config/auth.php
  83. +0 −4 config/cms-s.php
  84. +5 −5 config/cms.php
  85. +3 −3 config/lattice.php
  86. +6 −6 config/lattice_cms.php
  87. +1 −1 config/latticeviews.php
  88. +4 −4 config/navigation.php
  89. +2 −2 config/registration.php
  90. +9 −10 config/usermanagement.php
  91. +0 −48 cookbook/moplib.htaccess
  92. +4 −4 devtools/ruckusing-migrations/config/config.inc.php
  93. +6 −6 devtools/ruckusing-migrations/generate.php
  94. +95 −95 devtools/ruckusing-migrations/lib/classes/adapters/class.Ruckusing_MySQLAdapter.php
  95. +31 −31 devtools/ruckusing-migrations/lib/classes/adapters/class.Ruckusing_MySQLTableDefinition.php
  96. +20 −20 devtools/ruckusing-migrations/lib/classes/class.Ruckusing_FrameworkRunner.php
  97. +8 −8 devtools/ruckusing-migrations/lib/classes/task/class.Ruckusing_TaskManager.php
  98. +3 −3 devtools/ruckusing-migrations/lib/classes/util/class.Ruckusing_Logger.php
  99. +19 −19 devtools/ruckusing-migrations/lib/classes/util/class.Ruckusing_MigratorUtil.php
  100. +8 −8 devtools/ruckusing-migrations/lib/classes/util/class.Ruckusing_NamingUtil.php
  101. +20 −20 devtools/ruckusing-migrations/lib/tasks/class.Ruckusing_DB_Migrate.php
  102. +1 −1 devtools/ruckusing-migrations/lib/tasks/class.Ruckusing_DB_Setup.php
  103. +1 −1 devtools/ruckusing-migrations/lib/tasks/class.Ruckusing_DB_Status.php
  104. +2 −2 devtools/ruckusing-migrations/lib/tasks/class.Ruckusing_DB_Version.php
  105. +4 −4 devtools/ruckusing-migrations/tests/test_helper.php
  106. +4 −4 devtools/ruckusing-migrations/tests/unit/BaseMigrationTest.php
  107. +2 −2 devtools/ruckusing-migrations/tests/unit/MigratorUtilTest.php
  108. +6 −6 devtools/ruckusing-migrations/tests/unit/MySQLAdapterTest.php
  109. +3 −3 devtools/ruckusing-migrations/tests/unit/MySQLTableDefinitionTest.php
  110. +2 −2 devtools/ruckusing-migrations/tests/unit/NamingUtilTest.php
  111. +2 −2 devtools/ruckusing-migrations/tests/unit/TaskManagerTest.php
  112. +1 −1 devtools/tests/classes/AssociatorTest.php
  113. +1 −1 devtools/tests/classes/GraphObjectAuthRolesTest.php
  114. +2 −2 devtools/tests/classes/ModelObjectTest.php
  115. +1 −0 i18n/en.php
  116. +1 −1 includes/mysqlfuncs.php
  117. +16 −22 init.php
  118. +43 −2 lattice/clusters.xml
  119. +0 −17 lattice/cmsModules.dtd
  120. +0 −8 lattice/cmsModules.xml
  121. +7 −1 lattice/objects.dtd
  122. +4 −1 views/LayoutAdmin.php
  123. +1 −1 views/auth/forgot.php
  124. +1 −1 views/auth/login.php
  125. +4 −2 views/default.php
  126. +0 −1 views/header_admin.php
  127. +0 −21 views/initializationMessages.php
  128. +2 −2 views/js/latticesettings.php
  129. +1 −1 views/languageControls.php
  130. +34 −38 views/lattice/associator.php
  131. +13 −7 views/lattice/associator/checkboxes.php
  132. +2 −4 views/lattice/associator/checkboxes/item.php
  133. +1 −1 views/lattice/associator/radios.php
  134. +0 −8 views/latticeInstalled.php
  135. +0 −8 views/latticeNotInstalled.php
  136. +10 −2 views/lattice_cms.php
  137. +19 −8 views/lattice_cms_nodetitle.php
  138. +7 −7 views/list.php
  139. +2 −2 views/list_item.php
  140. +5 −1 views/logged_in_as.php
  141. +0 −7 views/moveControls.php
  142. +1 −0 views/navigation.php
  143. +0 −14 views/navigationNode.php
  144. +0 −6 views/navigationTier.php
  145. +3 −3 views/pagination/paginationControls.php
  146. +1 −1 views/publicnav.php
  147. +1 −1 views/registration.php
  148. +0 −13 views/tierMethodsDrawer.php
  149. +1 −1 views/ui/checkbox.php
  150. +1 −1 views/ui/date.php
  151. +1 −1 views/ui/dateRange.php
  152. +20 −4 views/ui/file.php
  153. +13 −5 views/ui/image.php
  154. +1 −1 views/ui/input.php
  155. +0 −12 views/ui/multiSelect.php
  156. +3 −3 views/ui/password.php
  157. +1 −1 views/ui/pulldown.php
  158. +0 −10 views/ui/radioGroup.php
  159. +1 −1 views/ui/tags.php
  160. +7 −3 views/ui/text.php
  161. +1 −1 views/ui/time.php
  162. +6 −6 views/usermanagement.php
  163. +10 −9 views/usermanagement_item.php
  164. +1 −1 views/usersList.php
View
@@ -1,249 +0,0 @@
-<?
-/* @package Lattice */
-
-Class Associator {
-//mainassociator
- public $parentId = NULL;
- public $parent = NULL;
- public $lattice = NULL;
- public $filters = NULL;
- public $pool = array();
- public $associated = array();
- //set this as needed when calling paged results
- //right now this is set on an instance, by actions that pre load $this->pool
- public $numPages = 2;
-
- protected $label;
- protected $poolLabel;
- protected $pageLength;
- //this is page size for paginator
- //this doesn't matter anymore because we're paginating
- private $maxPoolSize = 80;
- private $pageNum = 1;
- public static function getFiltersFromDomNode($node){
- $filtersNodeList = lattice::config('objects', 'filter', $node);
- $filters = array();
- foreach($filtersNodeList as $filter){
- $setting = array();
- $setting['from'] = $filter->getAttribute('from');
- $setting['objectTypeName'] = $filter->getAttribute('objectTypeName');
- $setting['tagged'] = $filter->getAttribute('tagged');
- $setting['function'] = $filter->getAttribute('function');
- $filters[] = $setting;
- }
- return $filters;
-
- }
-
-
- //TODO
- public function setViewName($viewName){throw new Kohana_Exception('Not Implemented');} //to support multi-lattice single custom view
- public function setAssociatorName($associatorName){throw new Kohana_Exception('Not Implemented');} //to support mutli-instance single lattice
-
-
-
- public function __construct($parentId, $lattice, $filters=NULL, $loadPool=NULL){
- $this->parentId = $parentId;
- $this->parent = Graph::object($this->parentId);
- $this->lattice = $lattice;
- $this->filters = $filters;
- $this->pageLength = Kohana::config('cms.associatorPageLength');
-
- foreach($this->parent->getLatticeChildrenPaged($this->lattice) as $child){
- $this->associated[] = $child;
- }
-
- if(is_array($loadPool)){
- $this->pool = $loadPool;
- }
- $logPool = array();
-
- if (is_array($loadPool)){
- foreach ($loadPool as $l){
- $logPool[] = $l->id;
- }
-
- }
- // Kohana::$log->add( Kohana_Log::INFO, print_r($logPool,1) )->write();
- // Kohana::$log->add( Kohana_Log::INFO, print_r($filters,1) )->write();
- // Kohana::$log->add( Kohana_Log::INFO, print_r($lattice,1) )->write();
-
- //load pool
- if($filters){
-
- $objects = Graph::object();
-
- foreach($filters as $filter){
-
- if(isset($filter['from']) && $filter['from']){
- $from = Graph::object($filter['from']);
- ($filter['lattice']) ? $lattice = $filter['lattice'] : $lattice = 'lattice';
- $objects = $from->latticeChildrenQuery($lattice);
- }
-
- if(isset($filter['tagged']) && $filter['tagged']){
- $objects->taggedFilter($filter['tagged']);
- }
-
- if(isset($filter['objectTypeName']) && $filter['objectTypeName']){
- $t = ORM::Factory('objectType', $filter['objectTypeName']);
- if(!$t->loaded()){
- Graph::configureObjectType($filter['objectTypeName']);
- $t = ORM::Factory('objecttype', $filter['objectTypeName']);
- if(!$t->loaded()){
- throw new Kohana_Exception($filter['objectTypeName'] .' Not Found');
- }
- }
- $objects->where('objecttype_id', '=', $t->id);
- }
-
- if(isset($filter['match']) && $filter['match']){
- $matchFields = explode(',',$filter['matchFields']);
- $wheres = array();
- foreach($matchFields as $matchField){
- $wheres[] = array($matchField, 'LIKE', '%'.$filter['match'].'%');
- }
- $objects->contentFilter($wheres);
-
- }
-
- if(isset($filter['function']) && $filter['function']){
- $callback = explode('::', $filter['function']);
-
- $options = null;
- $objects = call_user_func($callback, $objects, $parentId, $options);
- }
-
-
- $objects->where('objects.language_id', '=', Graph::defaultLanguage());
- $objects->publishedFilter();
- //just return an array of id's then load the pool object
- $results = $objects->find_all()->as_array(NULL, 'id');
- //check our filtered objects are correct
- //compact the array to remove redundant keys
- $res = array();
- foreach ($results as $id) {
- $object = Graph::object($id);
- if(!$this->parent->checkLatticeRelationship($lattice, $object)){
- $res[$id] = $id;
- }
- }
- $results = $res;
- $this->numPages = ceil(count($results)/$this->pageLength);
- //get slice the first page, then load the objects from their id's
- $params = explode("/",$_SERVER["REQUEST_URI"]);
- //print_r($params);
- //@TODO this is a kludge. Oh well.
- if (isset($params[7]) && $params[6]=="postingVideosAssociator"){
- //we're passing a page number - so slice the object ids
- $results = array_slice($results,($params[7]-1)*16,16);
- } else {
- $results = array_slice($results,0,$this->pageLength);
- }
-
- foreach($results as $id){
- $object = Graph::object($id);
- $this->pool[$id] =$object;
- }
- }
-
- } else if(!is_array($loadPool)) {
-
- $objects = Graph::object()
- ->where( 'id', '!=', $parentId )
- ->where( 'objects.language_id', '=', Graph::defaultLanguage() )
- ->publishedFilter()
- ->limit( $this->maxPoolSize )
- ->find_all();
- $this->pool = $objects;
-
- }
-
- }
-
- public function setLabel($label){
- $this->label = $label;
- }
- public function setPageLength($pageLength){
- $this->pageLength = $pageLength;
- }
-
- public function setPoolLabel($poolLabel){
- $this->poolLabel = $poolLabel;
- }
-
- public function render($viewName = NULL){
- if($viewName && ($view = Kohana::find_file('views', 'lattice/associator/'.$viewName) )){
- $view = new View('lattice/associator/'.$viewName);
- } else {
- $view = new View('lattice/associator');
- }
-
-
- $view->pool = $this->poolItemViews($viewName);
-
- $view->associated = array();
- foreach($this->associated as $associatedItem){
- $view->associated[] = $this->getItemView($associatedItem, $viewName);
- }
-
- $view->parentId = $this->parentId;
- $view->lattice = $this->lattice;
- $view->label = $this->label;
- $view->poolLabel = $this->poolLabel;
- $view->pageLength = $this->pageLength;
- $view->numPages = $this->numPages;
-
-
-
- /*
- paginator vars- probably should be its own func
- these are messy too
-
- */
-
- $view->urlPrepend = "ajax/html";
- // echo strpos($original_uri,$action);
- //pass our paginator params to the view
-// $view->controllerName = $this->request->controller();
-// $view->action = $action;
-// $view->params = $this->request->param();
-// $view->currentPage = $view->params["param4"];
- /* end paginator vars*/
- return $view->render();
- }
-
- public function renderPoolItems(){
- return( implode("\n",$this->poolItemViews($this->lattice) ) );
- }
-
- private function poolItemViews($viewName = NULL){
- $poolItemViews = array();
- foreach($this->pool as $poolItem){
- $poolItemViews[] = $this->getItemView($poolItem, $viewName);
- }
- return $poolItemViews;
- }
-
- private function getItemView($item, $viewName){
-
- if($viewName && $view = Kohana::find_file('views/lattice/associator/'.$viewName, $item->objecttype->objecttypename)){
- $view = new View('lattice/associator/'.$viewName.'/'.$item->objecttype->objecttypename);
- } else if($viewName && $view = Kohana::find_file('views/lattice/associator/'.$viewName, 'item')){
- $view = new View('lattice/associator/'.$viewName.'/'.'item');
- } else if($view = Kohana::find_file('views/lattice/associator/', $item->objecttype->objecttypename)){
- $view = new View('lattice/associator/'.$item->objecttype->objecttypename);
- } else {
- $view = new View('lattice/associator/item');
- }
- $view->object = $item;
-
- $view->selected = false;
-
- return $view;
-
- }
-
-
-
-}
@@ -1,31 +0,0 @@
-<?
-
-Class Associator_Checkboxes {
-
- public static function makePool($associatedViews, $poolViews){
- if(count($associatedViews)){
- $keys = array_map(array('Associator_Checkboxes','titleIndex'), $associatedViews);
- $associatedViews = array_combine($keys, $associatedViews);
- }
- $poolViews = array_combine( array_map(array('Associator_Checkboxes','titleIndex'), $poolViews), $poolViews);
- foreach($associatedViews as $key => $view){
- $view->selected = true;
- $poolViews[$key] = $view;
- }
-
- array_walk($poolViews, array('Associator_Checkboxes', 'setUniqueElementId'));
-
- ksort($poolViews);
-
- return $poolViews;
- }
-
- private static function titleIndex($view){
- return $view->object->title;
- }
-
- private static function setUniqueElementId($view){
- $view->uniqueElementId = LatticeCms::uniqueElementId();
- }
-
-}
@@ -1,31 +0,0 @@
-<?
-
-Class Associator_Radios {
-
- public static function makePool($associatedViews, $poolViews){
- if(count($associatedViews)){
- $keys = array_map(array('Associator_Radios','titleIndex'), $associatedViews);
- $associatedViews = array_combine($keys, $associatedViews);
- }
- $poolViews = array_combine( array_map(array('Associator_Radios','titleIndex'), $poolViews), $poolViews);
- foreach($associatedViews as $key => $view){
- $view->selected = true;
- $poolViews[$key] = $view;
- }
-
- array_walk($poolViews, array('Associator_Radios', 'setUniqueElementId'));
-
- ksort($poolViews);
-
- return $poolViews;
- }
-
- private static function titleIndex($view){
- return $view->object->title;
- }
-
- private static function setUniqueElementId($view){
- $view->uniqueElementId = LatticeCms::uniqueElementId();
- }
-
-}
Oops, something went wrong.

0 comments on commit 79c7eb5

Please sign in to comment.