code
stringlengths
1
2.01M
language
stringclasses
1 value
<?php App::uses('AppController', 'Controller'); /** * Jobs Controller * * @property Job $Job */ class JobsController extends AppController { /** * index method * * @return void */ public function index() { $this->Job->recursive = 0; $this->set('jobs', $this->paginate()); } /** * v...
PHP
<?php App::uses('AppController', 'Controller'); /** * Groups Controller * * @property Group $Group */ class GroupsController extends AppController { /** * index method * * @return void */ public function index() { $this->Group->recursive = 0; $this->set('groups', $this->paginate()); } ...
PHP
<?php App::uses('AppController', 'Controller'); /** * Destinations Controller * * @property Destination $Destination */ class DestinationsController extends AppController { /** * index method * * @return void */ public function index() { $this->Destination->recursive = 0; $this->set('des...
PHP
<?php App::uses('AppController', 'Controller'); /** * UsersLanguages Controller * * @property UsersLanguage $UsersLanguage */ class UsersLanguagesController extends AppController { /** * index method * * @return void */ public function index() { $this->UsersLanguage->recursive = 0; $this...
PHP
<?php App::uses('AppController', 'Controller'); /** * Bids Controller * * @property Bid $Bid */ class BidsController extends AppController { /** * index method * * @return void */ public function index() { $this->Bid->recursive = 0; $this->set('bids', $this->paginate()); } /** * v...
PHP
<?php App::uses('AppController', 'Controller'); /** * TranslatorsTranslators Controller * * @property TranslatorsTranslator $TranslatorsTranslator */ class TranslatorsTranslatorsController extends AppController { /** * index method * * @return void */ public function index() { $this->Transl...
PHP
<?php App::uses('AppController', 'Controller'); /** * Translators Controller * * @property Translator $Translator */ class TranslatorsController extends AppController { /** * index method * * @return void */ public function index() { $this->Translator->recursive = 0; $this->set('translat...
PHP
<?php /* Message Fixture generated on: 2011-10-21 10:09:26 : 1319184566 */ /** * MessageFixture * */ class MessageFixture extends CakeTestFixture { /** * Fields * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'null' => false, 'default' => NULL, 'key' => 'primary',...
PHP
<?php /* Part Fixture generated on: 2011-10-18 04:50:36 : 1318906236 */ /** * PartFixture * */ class PartFixture extends CakeTestFixture { /** * Fields * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'null' => false, 'default' => NULL, 'key' => 'primary', 'collate...
PHP
<?php /* Job Fixture generated on: 2011-10-21 10:09:24 : 1319184564 */ /** * JobFixture * */ class JobFixture extends CakeTestFixture { /** * Fields * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'null' => false, 'default' => NULL, 'key' => 'primary', 'collate' =...
PHP
<?php /* Photo Fixture generated on: 2011-11-11 08:26:14 : 1320996374 */ /** * PhotoFixture * */ class PhotoFixture extends CakeTestFixture { /** * Fields * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'null' => false, 'default' => NULL, 'key' => 'primary', 'coll...
PHP
<?php /* Group Fixture generated on: 2011-11-11 07:33:21 : 1320993201 */ /** * GroupFixture * */ class GroupFixture extends CakeTestFixture { /** * Fields * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'null' => false, 'default' => NULL, 'key' => 'primary', 'coll...
PHP
<?php /* PhotoGroup Fixture generated on: 2011-11-11 08:26:14 : 1320996374 */ /** * PhotoGroupFixture * */ class PhotoGroupFixture extends CakeTestFixture { /** * Fields * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'null' => false, 'default' => NULL, 'key' => '...
PHP
<?php /* TranslatorTranslator Fixture generated on: 2011-10-18 10:31:57 : 1318926717 */ /** * TranslatorTranslatorFixture * */ class TranslatorTranslatorFixture extends CakeTestFixture { /** * Fields * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'null' => false,...
PHP
<?php /* Education Fixture generated on: 2011-10-21 10:09:24 : 1319184564 */ /** * EducationFixture * */ class EducationFixture extends CakeTestFixture { /** * Fields * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'null' => false, 'default' => NULL, 'key' => 'pri...
PHP
<?php /* Bid Fixture generated on: 2011-10-21 10:09:21 : 1319184561 */ /** * BidFixture * */ class BidFixture extends CakeTestFixture { /** * Fields * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'null' => false, 'default' => NULL, 'key' => 'primary', 'collate' =...
PHP
<?php /* Destination Fixture generated on: 2011-10-21 10:09:23 : 1319184563 */ /** * DestinationFixture * */ class DestinationFixture extends CakeTestFixture { /** * Fields * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'null' => false, 'default' => NULL, 'key' =...
PHP
<?php /* TranslatorFriend Fixture generated on: 2011-10-18 12:22:31 : 1318933351 */ /** * TranslatorFriendFixture * */ class TranslatorFriendFixture extends CakeTestFixture { /** * Fields * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'null' => false, 'default' =...
PHP
<?php /* Translator Fixture generated on: 2011-10-18 12:12:46 : 1318932766 */ /** * TranslatorFixture * */ class TranslatorFixture extends CakeTestFixture { /** * Fields * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'null' => false, 'default' => NULL, 'key' => '...
PHP
<?php /* UsersFriend Fixture generated on: 2011-10-21 10:09:30 : 1319184570 */ /** * UsersFriendFixture * */ class UsersFriendFixture extends CakeTestFixture { /** * Fields * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'null' => false, 'default' => NULL, 'key' =...
PHP
<?php /* Profile Fixture generated on: 2011-10-21 10:09:28 : 1319184568 */ /** * ProfileFixture * */ class ProfileFixture extends CakeTestFixture { /** * Fields * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'null' => false, 'default' => NULL, 'key' => 'primary',...
PHP
<?php /* Source Fixture generated on: 2011-10-21 10:09:28 : 1319184568 */ /** * SourceFixture * */ class SourceFixture extends CakeTestFixture { /** * Fields * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'null' => false, 'default' => NULL, 'key' => 'primary', 'c...
PHP
<?php /* UsersLanguage Fixture generated on: 2011-10-21 10:09:30 : 1319184570 */ /** * UsersLanguageFixture * */ class UsersLanguageFixture extends CakeTestFixture { /** * Fields * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'null' => false, 'default' => NULL, '...
PHP
<?php /* Language Fixture generated on: 2011-10-21 10:09:25 : 1319184565 */ /** * LanguageFixture * */ class LanguageFixture extends CakeTestFixture { /** * Fields * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'null' => false, 'default' => NULL, 'key' => 'primar...
PHP
<?php /* MessagesUser Fixture generated on: 2011-10-21 10:09:26 : 1319184566 */ /** * MessagesUserFixture * */ class MessagesUserFixture extends CakeTestFixture { /** * Fields * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'null' => false, 'default' => NULL, 'key...
PHP
<?php /* EduType Fixture generated on: 2011-10-21 10:09:23 : 1319184563 */ /** * EduTypeFixture * */ class EduTypeFixture extends CakeTestFixture { /** * Fields * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'null' => false, 'default' => NULL, 'key' => 'primary',...
PHP
<?php /* Post Fixture generated on: 2011-10-21 10:09:27 : 1319184567 */ /** * PostFixture * */ class PostFixture extends CakeTestFixture { /** * Fields * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'null' => false, 'default' => NULL, 'key' => 'primary', 'collate...
PHP
<?php /* User Fixture generated on: 2011-10-21 10:09:29 : 1319184569 */ /** * UserFixture * */ class UserFixture extends CakeTestFixture { /** * Fields * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'null' => false, 'default' => NULL, 'key' => 'primary', 'collate...
PHP
<?php /* Comment Fixture generated on: 2011-10-21 10:09:22 : 1319184562 */ /** * CommentFixture * */ class CommentFixture extends CakeTestFixture { /** * Fields * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'null' => false, 'default' => NULL, 'key' => 'primary',...
PHP
<?php /* TranslatorsTranslator Fixture generated on: 2011-10-19 04:19:57 : 1318990797 */ /** * TranslatorsTranslatorFixture * */ class TranslatorsTranslatorFixture extends CakeTestFixture { /** * Fields * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'null' => fal...
PHP
<?php /* Users Test cases generated on: 2011-10-21 10:56:28 : 1319187388*/ App::uses('UsersController', 'Controller'); /** * TestUsersController * */ class TestUsersController extends UsersController { /** * Auto render * * @var boolean */ public $autoRender = false; /** * Redirect action ...
PHP
<?php /* PhotoGroups Test cases generated on: 2011-11-11 08:26:49 : 1320996409*/ App::uses('PhotoGroupsController', 'Controller'); /** * TestPhotoGroupsController * */ class TestPhotoGroupsController extends PhotoGroupsController { /** * Auto render * * @var boolean */ public $autoRender = false...
PHP
<?php /* Groups Test cases generated on: 2011-11-11 07:33:35 : 1320993215*/ App::uses('GroupsController', 'Controller'); /** * TestGroupsController * */ class TestGroupsController extends GroupsController { /** * Auto render * * @var boolean */ public $autoRender = false; /** * Redirect act...
PHP
<?php /* Destinations Test cases generated on: 2011-10-21 10:56:27 : 1319187387*/ App::uses('DestinationsController', 'Controller'); /** * TestDestinationsController * */ class TestDestinationsController extends DestinationsController { /** * Auto render * * @var boolean */ public $autoRender = ...
PHP
<?php /* UsersLanguages Test cases generated on: 2011-10-21 10:56:28 : 1319187388*/ App::uses('UsersLanguagesController', 'Controller'); /** * TestUsersLanguagesController * */ class TestUsersLanguagesController extends UsersLanguagesController { /** * Auto render * * @var boolean */ public $aut...
PHP
<?php /* Languages Test cases generated on: 2011-10-21 10:56:27 : 1319187387*/ App::uses('LanguagesController', 'Controller'); /** * TestLanguagesController * */ class TestLanguagesController extends LanguagesController { /** * Auto render * * @var boolean */ public $autoRender = false; /** ...
PHP
<?php /* Bids Test cases generated on: 2011-10-21 10:56:27 : 1319187387*/ App::uses('BidsController', 'Controller'); /** * TestBidsController * */ class TestBidsController extends BidsController { /** * Auto render * * @var boolean */ public $autoRender = false; /** * Redirect action * ...
PHP
<?php /* Photos Test cases generated on: 2011-11-11 08:48:19 : 1320997699*/ App::uses('PhotosController', 'Controller'); /** * TestPhotosController * */ class TestPhotosController extends PhotosController { /** * Auto render * * @var boolean */ public $autoRender = false; /** * Redirect act...
PHP
<?php /* MessagesUsers Test cases generated on: 2011-10-21 10:56:27 : 1319187387*/ App::uses('MessagesUsersController', 'Controller'); /** * TestMessagesUsersController * */ class TestMessagesUsersController extends MessagesUsersController { /** * Auto render * * @var boolean */ public $autoRend...
PHP
<?php /* TranslatorFriends Test cases generated on: 2011-10-18 11:03:26 : 1318928606*/ App::uses('TranslatorFriendsController', 'Controller'); /** * TestTranslatorFriendsController * */ class TestTranslatorFriendsController extends TranslatorFriendsController { /** * Auto render * * @var boolean *...
PHP
<?php /* Sources Test cases generated on: 2011-10-21 10:56:28 : 1319187388*/ App::uses('SourcesController', 'Controller'); /** * TestSourcesController * */ class TestSourcesController extends SourcesController { /** * Auto render * * @var boolean */ public $autoRender = false; /** * Redirec...
PHP
<?php /* Translators Test cases generated on: 2011-10-19 04:16:05 : 1318990565*/ App::uses('TranslatorsController', 'Controller'); /** * TestTranslatorsController * */ class TestTranslatorsController extends TranslatorsController { /** * Auto render * * @var boolean */ public $autoRender = false...
PHP
<?php /* Posts Test cases generated on: 2011-10-21 10:56:28 : 1319187388*/ App::uses('PostsController', 'Controller'); /** * TestPostsController * */ class TestPostsController extends PostsController { /** * Auto render * * @var boolean */ public $autoRender = false; /** * Redirect action ...
PHP
<?php /* Parts Test cases generated on: 2011-10-18 04:50:37 : 1318906237*/ App::uses('PartsController', 'Controller'); /** * TestPartsController * */ class TestPartsController extends PartsController { /** * Auto render * * @var boolean */ public $autoRender = false; /** * Redirect action ...
PHP
<?php /* TranslatorsTranslators Test cases generated on: 2011-10-19 04:19:57 : 1318990797*/ App::uses('TranslatorsTranslatorsController', 'Controller'); /** * TestTranslatorsTranslatorsController * */ class TestTranslatorsTranslatorsController extends TranslatorsTranslatorsController { /** * Auto render...
PHP
<?php /* TranslatorTranslators Test cases generated on: 2011-10-18 10:32:25 : 1318926745*/ App::uses('TranslatorTranslatorsController', 'Controller'); /** * TestTranslatorTranslatorsController * */ class TestTranslatorTranslatorsController extends TranslatorTranslatorsController { /** * Auto render * ...
PHP
<?php /* Educations Test cases generated on: 2011-10-21 10:56:27 : 1319187387*/ App::uses('Educations', 'Controller'); /** * TestEducations * */ class TestEducations extends Educations { /** * Auto render * * @var boolean */ public $autoRender = false; /** * Redirect action * * @param m...
PHP
<?php /* Messages Test cases generated on: 2011-10-21 10:56:27 : 1319187387*/ App::uses('MessagesController', 'Controller'); /** * TestMessagesController * */ class TestMessagesController extends MessagesController { /** * Auto render * * @var boolean */ public $autoRender = false; /** * Re...
PHP
<?php /* Jobs Test cases generated on: 2011-10-21 10:56:27 : 1319187387*/ App::uses('JobsController', 'Controller'); /** * TestJobsController * */ class TestJobsController extends JobsController { /** * Auto render * * @var boolean */ public $autoRender = false; /** * Redirect action * ...
PHP
<?php /* Profiles Test cases generated on: 2011-10-21 10:56:28 : 1319187388*/ App::uses('ProfilesController', 'Controller'); /** * TestProfilesController * */ class TestProfilesController extends ProfilesController { /** * Auto render * * @var boolean */ public $autoRender = false; /** * Re...
PHP
<?php /* EduTypes Test cases generated on: 2011-10-21 10:56:27 : 1319187387*/ App::uses('EduTypesController', 'Controller'); /** * TestEduTypesController * */ class TestEduTypesController extends EduTypesController { /** * Auto render * * @var boolean */ public $autoRender = false; /** * Re...
PHP
<?php /* UsersFriends Test cases generated on: 2011-10-21 10:56:28 : 1319187388*/ App::uses('UsersFriendsController', 'Controller'); /** * TestUsersFriendsController * */ class TestUsersFriendsController extends UsersFriendsController { /** * Auto render * * @var boolean */ public $autoRender = ...
PHP
<?php /* Comments Test cases generated on: 2011-10-21 10:56:27 : 1319187387*/ App::uses('CommentsController', 'Controller'); /** * TestCommentsController * */ class TestCommentsController extends CommentsController { /** * Auto render * * @var boolean */ public $autoRender = false; /** * Re...
PHP
<?php /* Destination Test cases generated on: 2011-10-21 10:09:23 : 1319184563*/ App::uses('Destination', 'Model'); /** * Destination Test Case * */ class DestinationTestCase extends CakeTestCase { /** * Fixtures * * @var array */ public $fixtures = array('app.destination', 'app.language', 'app.s...
PHP
<?php /* PhotoGroup Test cases generated on: 2011-11-11 08:26:14 : 1320996374*/ App::uses('PhotoGroup', 'Model'); /** * PhotoGroup Test Case * */ class PhotoGroupTestCase extends CakeTestCase { /** * Fixtures * * @var array */ public $fixtures = array('app.photo_group', 'app.photo'); /** * s...
PHP
<?php /* Group Test cases generated on: 2011-11-11 07:33:21 : 1320993201*/ App::uses('Group', 'Model'); /** * Group Test Case * */ class GroupTestCase extends CakeTestCase { /** * Fixtures * * @var array */ public $fixtures = array('app.group', 'app.user', 'app.photo', 'app.photo_group'); /** ...
PHP
<?php /* Comment Test cases generated on: 2011-10-21 10:09:22 : 1319184562*/ App::uses('Comment', 'Model'); /** * Comment Test Case * */ class CommentTestCase extends CakeTestCase { /** * Fixtures * * @var array */ public $fixtures = array('app.comment', 'app.user', 'app.bid', 'app.job', 'app.edu...
PHP
<?php /* Photo Test cases generated on: 2011-11-11 08:26:14 : 1320996374*/ App::uses('Photo', 'Model'); /** * Photo Test Case * */ class PhotoTestCase extends CakeTestCase { /** * Fixtures * * @var array */ public $fixtures = array('app.photo', 'app.photo_group'); /** * setUp method * * ...
PHP
<?php /* Language Test cases generated on: 2011-10-21 10:09:25 : 1319184565*/ App::uses('Language', 'Model'); /** * Language Test Case * */ class LanguageTestCase extends CakeTestCase { /** * Fixtures * * @var array */ public $fixtures = array('app.language', 'app.source', 'app.source1', 'app.use...
PHP
<?php /* EduType Test cases generated on: 2011-10-21 10:09:23 : 1319184563*/ App::uses('EduType', 'Model'); /** * EduType Test Case * */ class EduTypeTestCase extends CakeTestCase { /** * Fixtures * * @var array */ public $fixtures = array('app.edu_type', 'app.education', 'app.user', 'app.bid', '...
PHP
<?php /* Post Test cases generated on: 2011-10-21 10:09:27 : 1319184567*/ App::uses('Post', 'Model'); /** * Post Test Case * */ class PostTestCase extends CakeTestCase { /** * Fixtures * * @var array */ public $fixtures = array('app.post', 'app.user', 'app.bid', 'app.job', 'app.comment', 'app.edu...
PHP
<?php /* User Test cases generated on: 2011-10-21 10:09:29 : 1319184569*/ App::uses('User', 'Model'); /** * User Test Case * */ class UserTestCase extends CakeTestCase { /** * Fixtures * * @var array */ public $fixtures = array('app.user', 'app.bid', 'app.job', 'app.comment', 'app.post', 'app.edu...
PHP
<?php /* UsersFriend Test cases generated on: 2011-10-21 10:09:30 : 1319184570*/ App::uses('UsersFriend', 'Model'); /** * UsersFriend Test Case * */ class UsersFriendTestCase extends CakeTestCase { /** * Fixtures * * @var array */ public $fixtures = array('app.users_friend', 'app.user', 'app.bid'...
PHP
<?php /* Source Test cases generated on: 2011-10-21 10:09:28 : 1319184568*/ App::uses('Source', 'Model'); /** * Source Test Case * */ class SourceTestCase extends CakeTestCase { /** * Fixtures * * @var array */ public $fixtures = array('app.source', 'app.language', 'app.source1', 'app.user', 'app...
PHP
<?php /* Translator Test cases generated on: 2011-10-18 10:31:49 : 1318926709*/ App::uses('Translator', 'Model'); /** * Translator Test Case * */ class TranslatorTestCase extends CakeTestCase { /** * Fixtures * * @var array */ public $fixtures = array('app.translator', 'app.translator_translator'...
PHP
<?php /* Profile Test cases generated on: 2011-10-21 10:09:28 : 1319184568*/ App::uses('Profile', 'Model'); /** * Profile Test Case * */ class ProfileTestCase extends CakeTestCase { /** * Fixtures * * @var array */ public $fixtures = array('app.profile', 'app.user', 'app.bid', 'app.job', 'app.com...
PHP
<?php /* Bid Test cases generated on: 2011-10-21 10:09:21 : 1319184561*/ App::uses('Bid', 'Model'); /** * Bid Test Case * */ class BidTestCase extends CakeTestCase { /** * Fixtures * * @var array */ public $fixtures = array('app.bid', 'app.job', 'app.user', 'app.comment', 'app.post', 'app.educati...
PHP
<?php /* Job Test cases generated on: 2011-10-21 10:09:24 : 1319184564*/ App::uses('Job', 'Model'); /** * Job Test Case * */ class JobTestCase extends CakeTestCase { /** * Fixtures * * @var array */ public $fixtures = array('app.job', 'app.user', 'app.bid', 'app.comment', 'app.post', 'app.educati...
PHP
<?php /* Part Test cases generated on: 2011-10-18 04:50:37 : 1318906237*/ App::uses('Part', 'Model'); /** * Part Test Case * */ class PartTestCase extends CakeTestCase { /** * Fixtures * * @var array */ public $fixtures = array('app.part'); /** * setUp method * * @return void */ publ...
PHP
<?php /* UsersLanguage Test cases generated on: 2011-10-21 10:09:30 : 1319184570*/ App::uses('UsersLanguage', 'Model'); /** * UsersLanguage Test Case * */ class UsersLanguageTestCase extends CakeTestCase { /** * Fixtures * * @var array */ public $fixtures = array('app.users_language', 'app.user',...
PHP
<?php /* Education Test cases generated on: 2011-10-21 10:09:24 : 1319184564*/ App::uses('Education', 'Model'); /** * Education Test Case * */ class EducationTestCase extends CakeTestCase { /** * Fixtures * * @var array */ public $fixtures = array('app.education', 'app.user', 'app.bid', 'app.job'...
PHP
<?php /* TranslatorsTranslator Test cases generated on: 2011-10-19 04:19:57 : 1318990797*/ App::uses('TranslatorsTranslator', 'Model'); /** * TranslatorsTranslator Test Case * */ class TranslatorsTranslatorTestCase extends CakeTestCase { /** * Fixtures * * @var array */ public $fixtures = array('...
PHP
<?php /* Message Test cases generated on: 2011-10-21 10:09:26 : 1319184566*/ App::uses('Message', 'Model'); /** * Message Test Case * */ class MessageTestCase extends CakeTestCase { /** * Fixtures * * @var array */ public $fixtures = array('app.message', 'app.user', 'app.bid', 'app.job', 'app.com...
PHP
<?php /* MessagesUser Test cases generated on: 2011-10-21 10:09:26 : 1319184566*/ App::uses('MessagesUser', 'Model'); /** * MessagesUser Test Case * */ class MessagesUserTestCase extends CakeTestCase { /** * Fixtures * * @var array */ public $fixtures = array('app.messages_user', 'app.message', '...
PHP
<?php /** * PHP 5 * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2005-2011, Ca...
PHP
#!/usr/bin/php -q <?php /** * Command-line code generation utility to automate programmer chores. * * PHP 5 * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright 2005-2011, Cake Software Foundation, Inc. * * Licensed under The MIT License * Redistributions of files must retain the abov...
PHP
#!/usr/bin/php -q <?php /** * Command-line code generation utility to automate programmer chores. * * PHP 5 * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright 2005-2011, Cake Software Foundation, Inc. * * Licensed under The MIT License * Redistributions of files must retain the abov...
PHP
<?php /** * This is core configuration file. * * Use it to configure core behaviour of Cake. * * PHP 5 * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of f...
PHP
<?php /** * Routes configuration * * In this file, you set up routes to your controllers and their actions. * Routes are very important mechanism that allows you to freely connect * different urls to chosen controllers and their actions (functions). * * PHP 5 * * CakePHP(tm) : Rapid Development Framework (http...
PHP
;<?php exit() ?> ;/** ; * ACL Configuration ; * ; * ; * PHP 5 ; * ; * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) ; * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) ; * ; * Licensed under The MIT License ; * Redistributions of files must retain the above copyright n...
PHP
<?php /** * This is core configuration file. * * Use it to configure core behavior of Cake. * * PHP 5 * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of fi...
PHP
<?php /** * This file is loaded automatically by the app/webroot/index.php file after core.php * * This file should load/create any application wide configuration settings, such as * Caching, Logging, loading additional configuration files. * * You should also use this file to include any files that provide glob...
PHP
<?php /*DbAcl schema generated on: 2007-11-24 15:11:13 : 1195945453*/ /** * This is Acl Schema file * * Use it to configure database for ACL * * PHP 5 * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licen...
PHP
<?php /*i18n schema generated on: 2007-11-25 07:11:25 : 1196004805*/ /** * This is i18n Schema file * * Use it to configure database for i18n * * PHP 5 * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Lice...
PHP
<?php /*Sessions schema generated on: 2007-11-25 07:11:54 : 1196004714*/ /** * This is Sessions Schema file * * Use it to configure database for Sessions * * PHP 5 * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org...
PHP
<?php App::uses('AppModel', 'Model'); /** * User Model * * @property Bid $Bid * @property Comment $Comment * @property Education $Education * @property Job $Job * @property Message $Message * @property Post $Post * @property Profile $Profile * @property Message $Message * @property Friend $Frien...
PHP
<?php App::uses('AppModel', 'Model'); /** * Post Model * * @property User $User * @property Comment $Comment */ class Post extends AppModel { /** * Validation rules * * @var array */ public $validate = array( 'user_id' => array( 'numeric' => array( 'rule' => array('numeric'), //...
PHP
<?php App::uses('AppModel', 'Model'); /** * Bid Model * * @property Job $Job * @property User $User */ class Bid extends AppModel { /** * Validation rules * * @var array */ public $validate = array( 'job_id' => array( 'numeric' => array( 'rule' => array('numeric'), //'message' =...
PHP
<?php App::uses('AppModel', 'Model'); /** * Language Model * * @property Source $Source * @property Destination $Destination * @property User $User */ class Language extends AppModel { /** * Validation rules * * @var array */ public $validate = array( 'source_id' => array( 'numeric' => ...
PHP
<?php App::uses('AppModel', 'Model'); /** * Source Model * * @property Language $Language */ class Source extends AppModel { //The Associations below have been created with all possible keys, those that are not needed can be removed /** * hasMany associations * * @var array */ public $hasMan...
PHP
<?php /** * MeioUpload Behavior * This behavior is based on Tane Piper's improved uplaod behavior (http://digitalspaghetti.tooum.net/switchboard/blog/2497:Upload_Behavior_for_CakePHP_12) * @author Vinicius Mendes (vbmendes@gmail.com) * @link http://www.meiocodigo.com * @filesource http://www.meiocodigo.com/meioupl...
PHP
<?php /* * jQuery File Upload Plugin PHP Example 5.2.9 * https://github.com/blueimp/jQuery-File-Upload * * Copyright 2010, Sebastian Tschan * https://blueimp.net * * Licensed under the MIT license: * http://creativecommons.org/licenses/MIT/ */ class UploadBehavior extends ModelBehavior { private $options...
PHP
<?php App::uses('AppModel', 'Model'); /** * Profile Model * * @property User $User */ class Profile extends AppModel { /** * Validation rules * * @var array */ public $validate = array( 'user_id' => array( 'numeric' => array( 'rule' => array('numeric'), //'message' => 'Your custom...
PHP
<?php App::uses('AppModel', 'Model'); /** * Comment Model * * @property User $User * @property Post $Post */ class Comment extends AppModel { /** * Validation rules * * @var array */ public $validate = array( 'user_id' => array( 'numeric' => array( 'rule' => array('numeric'), //...
PHP
<?php App::uses('AppModel', 'Model'); /** * Photo Model * * @property PhotoGroup $PhotoGroup */ class Photo extends AppModel { /** * Validation rules * * @var array */ public $validate = array( 'photo_group_id' => array( 'numeric' => array( ...
PHP
<?php App::uses('AppModel', 'Model'); /** * User Model * * @property Bid $Bid * @property Comment $Comment * @property Education $Education * @property Job $Job * @property Message $Message * @property Post $Post * @property Profile $Profile * @property Message $Message * @property Friend $Frien...
PHP
<?php App::uses('AppModel', 'Model'); /** * UsersFriend Model * * @property User $User * @property Friend $Friend */ class UsersFriend extends AppModel { /** * Validation rules * * @var array */ public $validate = array( 'user_id' => array( 'numeric' => array( 'rule' => array('numeri...
PHP
<?php /** * Application model for Cake. * * This file is application-wide model file. You can put all * application-wide model-related methods here. * * PHP 5 * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * ...
PHP
<?php App::uses('AppModel', 'Model'); /** * Education Model * * @property User $User * @property EduType $EduType */ class Education extends AppModel { /** * Validation rules * * @var array */ public $validate = array( 'user_id' => array( 'numeric' => array( 'rule' => array('numeric'...
PHP
<?php App::uses('AppModel', 'Model'); /** * Group Model * * @property User $User * @property Photo $Photo */ class Group extends AppModel { /** * Validation rules * * @var array */ public $validate = array( 'name' => array( 'notempty' => array( 'rule' => array('notempty'), //'me...
PHP