[Isocial-svn] SF.net SVN: isocial: [95] app
Status: Pre-Alpha
Brought to you by:
aguidrevitch
From: <di...@us...> - 2008-03-18 19:16:01
|
Revision: 95 http://isocial.svn.sourceforge.net/isocial/?rev=95&view=rev Author: dim0s77 Date: 2008-03-18 12:16:07 -0700 (Tue, 18 Mar 2008) Log Message: ----------- added controller, installer and bases view for groups Modified Paths: -------------- app/installers/user_installer.php Added Paths: ----------- app/controllers/group_controller.php app/views/group/ app/views/group/show.tpl Added: app/controllers/group_controller.php =================================================================== --- app/controllers/group_controller.php (rev 0) +++ app/controllers/group_controller.php 2008-03-18 19:16:07 UTC (rev 95) @@ -0,0 +1,13 @@ +<?php + +class GroupController extends ApplicationController +{ + function index () { + $this->redirectTo(array('action' => 'show')); + } + + function show () { + } +} + +?> Modified: app/installers/user_installer.php =================================================================== --- app/installers/user_installer.php 2008-03-18 11:03:51 UTC (rev 94) +++ app/installers/user_installer.php 2008-03-18 19:16:07 UTC (rev 95) @@ -207,10 +207,30 @@ FOREIGN KEY (city_id) REFERENCES cities(id), INDEX user_idx (user_id) ) ENGINE=InnoDB"); + + $this->execute( + "CREATE TABLE `groups` ( + `id` int(11) NOT NULL PRIMARY KEY AUTO_INCREMENT, + `parent_id` int(11) NOT NULL DEFAULT '0', + `en_name` char(100) NOT NULL DEFAULT '' + ) ENGINE=InnoDB"); + + $this->execute("INSERT INTO `groups` (id, en_name) VALUES (0, 0, 'Business')"); + $this->execute("INSERT INTO `groups` (id, en_name) VALUES (0, 0, 'Common Interest')"); + $this->execute("INSERT INTO `groups` (id, en_name) VALUES (0, 0, 'Entertainment & Arts')"); + $this->execute("INSERT INTO `groups` (id, en_name) VALUES (0, 0, 'Geography')"); + $this->execute("INSERT INTO `groups` (id, en_name) VALUES (0, 0, 'Internet & Technology')"); + $this->execute("INSERT INTO `groups` (id, en_name) VALUES (0, 0, 'Just for Fun')"); + $this->execute("INSERT INTO `groups` (id, en_name) VALUES (0, 0, 'Music')"); + $this->execute("INSERT INTO `groups` (id, en_name) VALUES (0, 0, 'Organizations')"); + $this->execute("INSERT INTO `groups` (id, en_name) VALUES (0, 0, 'Sports & Recreation')"); + $this->execute("INSERT INTO `groups` (id, en_name) VALUES (0, 0, 'Student Group')"); + } function down_1() { + $this->dropTable('groups'); $this->dropTable('contact_profiles'); $this->dropTable('im_profiles'); $this->dropTable('ims'); Added: app/views/group/show.tpl =================================================================== --- app/views/group/show.tpl (rev 0) +++ app/views/group/show.tpl 2008-03-18 19:16:07 UTC (rev 95) @@ -0,0 +1 @@ +groups \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |