-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added new file structures to develop branch
- Loading branch information
Showing
201 changed files
with
4,452 additions
and
3,873 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
* | ||
* ==================================================================== | ||
*/ | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
* | ||
* ==================================================================== | ||
*/ |
Oops, something went wrong.