[Isocial-svn] SF.net SVN: isocial: [135] app
Status: Pre-Alpha
Brought to you by:
aguidrevitch
From: <fsn...@us...> - 2008-04-30 14:14:43
|
Revision: 135 http://isocial.svn.sourceforge.net/isocial/?rev=135&view=rev Author: fsnobody Date: 2008-04-30 07:14:50 -0700 (Wed, 30 Apr 2008) Log Message: ----------- Added Paths: ----------- app/installers/photoapp/ app/installers/photoapp/album_installer.php app/locales/photoapp/ app/locales/photoapp/album/ app/locales/photoapp/album/en.php app/locales/photoapp/album/ru.php app/models/photoapp_album.php Added: app/installers/photoapp/album_installer.php =================================================================== --- app/installers/photoapp/album_installer.php (rev 0) +++ app/installers/photoapp/album_installer.php 2008-04-30 14:14:50 UTC (rev 135) @@ -0,0 +1,28 @@ +<?php +class AlbumInstaller extends AkInstaller +{ + var $module = 'photoapp'; + + function up_1() + { + + $this->execute( + "CREATE TABLE `photoapp_albums` ( + `id` int(11) NOT NULL PRIMARY KEY AUTO_INCREMENT, + `owner` int(11) NOT NULL , + `name` char(100) NOT NULL DEFAULT '', + `privacy` char(100) NOT NULL DEFAULT '', + `description` char(255) NOT NULL DEFAULT '', + `img` char(255) NOT NULL DEFAULT '' + + ) ENGINE=InnoDB"); + + } + + function down_1() + { + $this->dropTable('photoapp_albums'); + } +} + +?> \ No newline at end of file Added: app/locales/photoapp/album/en.php =================================================================== --- app/locales/photoapp/album/en.php (rev 0) +++ app/locales/photoapp/album/en.php 2008-04-30 14:14:50 UTC (rev 135) @@ -0,0 +1,21 @@ +<?php + +// File created on: 2008-04-25 08:58 + +$dictionary = array(); + +$dictionary['My Photos'] = 'My Photos'; +$dictionary['Photos'] = 'Photos'; +$dictionary['Photos of You'] = 'Photos of You'; +$dictionary['Create a Photo Album'] = 'Create a Photo Album'; +$dictionary['Welcome to PROJECT_NAME Photos'] = 'Welcome to PROJECT_NAME Photos'; +$dictionary['Name'] = 'Name'; +$dictionary['Location'] = 'Location'; +$dictionary['Description'] = 'Description'; +$dictionary['Privacy'] = 'Privacy'; +$dictionary['Create Album'] = 'Create Album'; + + + + +?> Added: app/locales/photoapp/album/ru.php =================================================================== --- app/locales/photoapp/album/ru.php (rev 0) +++ app/locales/photoapp/album/ru.php 2008-04-30 14:14:50 UTC (rev 135) @@ -0,0 +1,20 @@ +<?php + +// File created on: 2008-04-25 08:58 + +$dictionary = array(); + +$dictionary['My Photos'] = 'Мои Фото'; +$dictionary['Photos'] = 'Фото'; +$dictionary['Photos of You'] = 'Фото для Вас'; +$dictionary['Create a Photo Album'] = 'Создать фото альбом'; +$dictionary['Welcome to PROJECT_NAME Photos'] = 'Добро пожаловать в PROJECT_NAME Фото'; +$dictionary['Name'] = 'Название'; +$dictionary['Location'] = 'Локация'; +$dictionary['Description'] = 'Описание'; +$dictionary['Privacy'] = 'Доступ'; +$dictionary['Create Album'] = 'Создать альбом'; + + + +?> Added: app/models/photoapp_album.php =================================================================== --- app/models/photoapp_album.php (rev 0) +++ app/models/photoapp_album.php 2008-04-30 14:14:50 UTC (rev 135) @@ -0,0 +1,14 @@ +<?php + +class PhotoappAlbum extends ActiveRecord +{ + //var $has_one = array('group_member' => array('class_name' => 'GroupappMember','foreign_key' => 'group_id'), ); + + function validateOnCreate () + { + $this->validatesPresenceOf('name', 'Name is missing|please enter the name'); + $this->validatesPresenceOf('description', 'Description is missing|please enter the description'); + } +} + +?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |