Skip to content

Commit

Permalink
Added new file structures to develop branch
Browse files Browse the repository at this point in the history
  • Loading branch information
ysugimoto committed Jan 12, 2013
1 parent af5d584 commit f3f0d75
Show file tree
Hide file tree
Showing 201 changed files with 4,452 additions and 3,873 deletions.
39 changes: 39 additions & 0 deletions applications/base/activerecords/Posts.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?php if ( ! defined('SZ_EXEC') ) exit('access_denied');

class PostsActiveRecord extends SZ_ActiveRecord
{
protected $_table = 'posts';
protected $_primary = 'id';
protected $_schemas = array(
'id' => array('type' => 'INT'),
'name' => array('type' => 'VARCHAR'),
'text' => array('type' => 'TEXT'),
'created' => array('type' => 'DATETIME'),
'modified' => array('type' => 'DATETIME')
);

public function isValidId($value) {
return TRUE;
}


public function isValidName($value) {
return TRUE;
}


public function isValidText($value) {
return TRUE;
}


public function isValidCreated($value) {
return TRUE;
}


public function isValidModified($value) {
return TRUE;
}

}
File renamed without changes.
File renamed without changes.
9 changes: 9 additions & 0 deletions applications/base/classes/controllers/welcome.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php if ( ! defined('SZ_EXEC') ) exit('access_denied');

class Welcome extends SZ_Breeder
{
function index()
{
// Some logic here!
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
55 changes: 55 additions & 0 deletions applications/base/config/database.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<?php if ( ! defined('SZ_EXEC') ) exit('access_denied');

/**
* ====================================================================
*
* Seezoo-Framework
*
* A simple MVC/action Framework on PHP 5.1.0 or newer
*
*
* Database settings
*
* @package Seezoo-Framework
* @category config
* @author Yoshiaki Sugimoto <[email protected]>
* @license MIT Licence
*
* ====================================================================
*/

// default group --------------------------------------------- //

$database['default']['host'] = 'localhost';
$database['default']['port'] = 3306;
$database['default']['username'] = 'root';
$database['default']['password'] = 'dawningblue';
$database['default']['driver'] = 'mysql';
$database['default']['dbname'] = 'posts';
$database['default']['table_prefix'] = '';
$database['default']['driver_name'] = '';
$database['default']['pconnect'] = TRUE;
$database['default']['query_debug'] = TRUE;
/*
$database['default']['path'] = '/Users/sugimoto/local/sqlite2/bin/';
$database['default']['port'] = 3306;
$database['default']['username'] = 'root';
$database['default']['password'] = 'dawningblue';
$database['default']['driver'] = 'sqlite2';
$database['default']['dbname'] = 'sample.db';
$database['default']['table_prefix'] = '';
$database['default']['driver_name'] = '';
$database['default']['pconnect'] = TRUE;
$database['default']['query_debug'] = TRUE;
*/

// sample sqlite group --------------------------------------- //
$database['sqlite']['path'] = '/Users/sugimoto/local/sqlite/';
$database['sqlite']['port'] = null;
$database['sqlite']['username'] = null;
$database['sqlite']['password'] = null;
$database['sqlite']['driver'] = 'sqlite3';
$database['sqlite']['dbname'] = 'test.sqlite3';
$database['sqlite']['pconnect'] = TRUE;
$database['sqlite']['driver_name'] = '';
$database['sqlite']['query_debug'] = FALSE;
File renamed without changes.
119 changes: 119 additions & 0 deletions applications/base/config/mail.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
<?php if ( ! defined('SZ_EXEC') ) exit('access_denied');

/**
* ====================================================================
*
* Seezoo-Framework
*
* A simple MVC/action Framework on PHP 5.1.0 or newer
*
*
* Email settings
*
* @package Seezoo-Framework
* @category config
* @author Yoshiaki Sugimoto <[email protected]>
* @license MIT Licence
*
* ====================================================================
*/

/*
* --------------------------------------------------------------------
* Mail sending method
*
* you can choose "smtp" or "php"
* --------------------------------------------------------------------
*/
$mail['type'] = 'smtp';

/*
* --------------------------------------------------------------------
* Mail-From
*
* Dog mail library use this parameter at default
* ( enable change in your script )
* --------------------------------------------------------------------
*/
$mail['from'] = '[email protected]';

/*
* --------------------------------------------------------------------
* Mail-From-Name
*
* Dog mail library use this parameter at default
* ( enable change in your script )
* --------------------------------------------------------------------
*/
$mail['from_name'] = '';

/*
* --------------------------------------------------------------------
* SMTP setting
*
* If you use SMTP mail sending,
* please set these parameters.
* --------------------------------------------------------------------
*/
$mail['smtp']['hostname'] = 'ssl://smtp.gmail.com';
$mail['smtp']['port'] = 465;
$mail['smtp']['crypto'] = FALSE;
$mail['smtp']['username'] = '[email protected]';
$mail['smtp']['password'] = 'yoshiakisugimoto';
$mail['smtp']['keepalive'] = FALSE;


/* ===================================================================
* Mail receiver settings
* ===================================================================*/

/*
* --------------------------------------------------------------------
* Mail receiver
*
* you can choose these:
* imap : IMAP server
* pop3 : POP3 server
* stdin : get mail from STDIN
* --------------------------------------------------------------------
*/
$mail['receiver'] = 'pop3';

/*
* --------------------------------------------------------------------
* IMAP settings
*
* If you are using a mail server that supports IMAP,
* please set the following parameters.
* --------------------------------------------------------------------
*/
$mail['imap']['hostname'] = 'localhost';
$mail['imap']['port'] = 143;
$mail['imap']['user'] = '';
$mail['imap']['password'] = '';
$mail['imap']['ssl'] = FALSE;
$mail['imap']['persistent'] = FALSE;
$mail['imap']['timeout'] = 30;
$mail['imap']['authenticate'] = 'LOGIN';
$mail['imap']['saslkey'] = '';


/*
* --------------------------------------------------------------------
* POP3 settings
*
* If you are using a mail server that supports POP3,
* please set the following parameters.
* --------------------------------------------------------------------
*/
$mail['pop3']['hostname'] = 'localhost';
$mail['pop3']['port'] = 110;
$mail['pop3']['user'] = '';
$mail['pop3']['password'] = '';
$mail['pop3']['ssl'] = FALSE;
$mail['pop3']['persistent'] = FALSE;
$mail['pop3']['timeout'] = 30;



// End of mail.php
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@
* --------------------------------------------------
*/

$config['encrypt_key_string'] = 'SeezooEncryption';
$config['encrypt_key_string'] = 'DogEncryption';
$config['encrypt_init_vector'] = 'szvector';

/*
Expand Down
File renamed without changes.
60 changes: 60 additions & 0 deletions applications/base/config_sample/event.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<?php if ( ! defined('SZ_EXEC') ) exit('access_denied');

/**
* ====================================================================
*
* Seezoo-Framework
*
* A simple MVC/action Framework on PHP 5.1.0 or newer
*
*
* Event settings
*
* @package Seezoo-Framework
* @category config
* @author Yoshiaki Sugimoto <[email protected]>
* @license MIT Licence
*
* ====================================================================
*/

/*
* ====================================================================
* Event definition format
*
* Can be written in the following format,
* you can specify the timing of the launch event:
*
* <code>
* Single timing event
*
* $event[<timing>] = array(
* 'class' => <classname string>
* 'function => <function/classmethod string>
* 'once' => <bool TRUE or FALSE>
* );
*
* OR Multiple timing event
*
* $event[<timing>][] = array(
* 'class' => <classname>
* 'function => <functionname>
* 'once' => <bool TRUE or FALSE>
* );
* </code>
*
* Parameters:
* <timing> : Event fire timing name
* <classname> : Event fire class name
* <functionname> : call function ( method that if classname exists ) name
*
* And please be installed in a app/events/directory,
* the file name corresponding to the function name / class name.
*
* class/function file was included automatically on fire timing.
*
* ====================================================================
*/



Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
* --------------------------------------------------------------------
* Mail-From
*
* Seezoo mail library use this parameter at default
* Dog mail library use this parameter at default
* ( enable change in your script )
* --------------------------------------------------------------------
*/
Expand All @@ -41,7 +41,7 @@
* --------------------------------------------------------------------
* Mail-From-Name
*
* Seezoo mail library use this parameter at default
* Dog mail library use this parameter at default
* ( enable change in your script )
* --------------------------------------------------------------------
*/
Expand Down
44 changes: 44 additions & 0 deletions applications/base/config_sample/mapping.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?php if ( ! defined('SZ_EXEC') ) exit('access_denied');

/**
* ====================================================================
*
* Seezoo-Framework
*
* A simple MVC/action Framework on PHP 5.1.0 or newer
*
*
* URI mapping definitions
*
* @package Seezoo-Framework
* @category config
* @author Yoshiaki Sugimoto <[email protected]>
* @license MIT Licence
*
* ====================================================================
*/

/*
* ====================================================================
* Mapping definition format
*
* Can be written in the following format,
* you can specify mapping to access URI:
*
* <code>
* $mapping[<process>][<URIstring>] = <mapping>
* </code>
*
* Parameters:
* <process> : process mode
* <URIstring> : mapping target URI-String ( enable use with regex )
* <mapping> : rewrited URIstring
*
* <process> are available in the following string:
* "action" : action mode
* "mvc" : MVC rotuing mode
* "proc" : process mode
* "default": simple mode
*
* ====================================================================
*/
Loading

0 comments on commit f3f0d75

Please sign in to comment.