Skip to content
This repository has been archived by the owner on Nov 27, 2017. It is now read-only.

Commit

Permalink
adding package to files and modify README
Browse files Browse the repository at this point in the history
  • Loading branch information
emad-elsaid committed Mar 8, 2011
1 parent 2d12ea3 commit 3e94d0a
Show file tree
Hide file tree
Showing 10 changed files with 37 additions and 28 deletions.
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Codeigniter-Egypt support the idea of applications
* CodeIgniter PHP framework Version 2.0
* Datamapper Version 1.8.0
* Ion-Auth 22/2/2011 HEAD from Github
* Dojo+Dijit+Dojox Version 1.5
* Dojo+Dijit Version 1.5
* jquery Version 1.5.1

[The idea]
Expand Down
1 change: 1 addition & 0 deletions application/core/MY_Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* @copyright 2011 Emad Elsaid a.k.a Blaze Boy
* @license http://www.gnu.org/licenses/gpl-2.0.txt GPL License 2.0
* @link https://github.com/blazeeboy/Codeigniter-Egypt
* @package Core
*/
class Application extends CI_Controller {

Expand Down
1 change: 1 addition & 0 deletions application/helpers/perm_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* @copyright 2011 Emad Elsaid a.k.a Blaze Boy
* @license http://www.gnu.org/licenses/gpl-2.0.txt GPL License 2.0
* @link https://github.com/blazeeboy/Codeigniter-Egypt
* @package Helpers
*/
if ( ! function_exists('perm_array')){

Expand Down
1 change: 1 addition & 0 deletions application/helpers/theme_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* @copyright 2011 Emad Elsaid a.k.a Blaze Boy
* @license http://www.gnu.org/licenses/gpl-2.0.txt GPL License 2.0
* @link https://github.com/blazeeboy/Codeigniter-Egypt
* @package Helpers
*/
$CI =& get_instance();
$CI->load->config('theme');
Expand Down
55 changes: 28 additions & 27 deletions application/libraries/Gui.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @copyright 2011 Emad Elsaid a.k.a Blaze Boy
* @license http://www.gnu.org/licenses/gpl-2.0.txt GPL License 2.0
* @link https://github.com/blazeeboy/Codeigniter-Egypt
* @package Libraries
*/
class Gui {

Expand All @@ -23,10 +24,10 @@ function __construct(){
/**
* a form maker
*
* @param string $action: target page of the form
* @param array $data: array of key( label text )=>value(corresponding input HTML ), values can be generated with functions like textbox,color,file,folder,app.etc
* @param string $action target page of the form
* @param array $data array of key( label text )=>value(corresponding input HTML ), values can be generated with functions like textbox,color,file,folder,app.etc
* @param array/object $attributes: array or object of key(attribute)=>value(value of the attribute)
* @param array $hidden: array of hiden fields and values as key=>value
* @param array $hidden array of hiden fields and values as key=>value
* @return string form HTML string wich will be added directly to page
*/
public function form($action = '', $data=array(), $attributes = array(), $hidden = array()){
Expand All @@ -51,8 +52,8 @@ public function form($action = '', $data=array(), $attributes = array(), $hidden
/**
* generate hidden field HTML
*
* @param $NAME: hidden field name
* @param $value: hidden field value
* @param $NAME hidden field name
* @param $value hidden field value
* @return string hidden input tag string
*/
public function hidden($NAME='', $value='' ){
Expand All @@ -68,7 +69,7 @@ public function hidden($NAME='', $value='' ){
* be aware that tree will load all the tree as JSON string
* from the connector URL
*
* @param string $connector: URL to php file to use as ajax backend, with object like this
* @param string $connector URL to php file to use as ajax backend, with object like this
* <pre>
* {"identifier":"id","label":"description","items":[
* {"id":2,"description":"leaf1"},{"id":3,"description":"category","c":[
Expand All @@ -77,10 +78,10 @@ public function hidden($NAME='', $value='' ){
* ]}
* ]}
* </pre>
* @param string $NAME: text input name and id
* @param strin $value: text input value
* @param array/object/string $attr: attributes->value associative array
* @param array/object/string $style: property->value associative array
* @param string $NAME text input name and id
* @param strin $value text input value
* @param array/object/string $attr attributes->value associative array
* @param array/object/string $style property->value associative array
* @return string HTML string for the chooser
*/
public function file_chooser( $connector='', $NAME='',$value='', $attr=array(), $style=array() ){
Expand Down Expand Up @@ -120,7 +121,7 @@ public function file_chooser( $connector='', $NAME='',$value='', $attr=array(),
* be aware that tree will load all the tree as JSON string
* from the connector URL
*
* @param string $connector: URL to php file to use as ajax backend, with object like this
* @param string $connector URL to php file to use as ajax backend, with object like this
* <pre>
* {"identifier":"id","label":"description","items":[
* {"id":2,"description":"leaf1"},{"id":3,"description":"category","c":[
Expand All @@ -129,10 +130,10 @@ public function file_chooser( $connector='', $NAME='',$value='', $attr=array(),
* ]}
* ]}
* </pre>
* @param string $NAME: text input name and id
* @param strin $value: text input value
* @param array/object/string $attr: attributes->value associative array
* @param array/object/string $style: property->value associative array
* @param string $NAME text input name and id
* @param strin $value text input value
* @param array/object/string $attr attributes->value associative array
* @param array/object/string $style property->value associative array
* @return string HTML string for the chooser
*/
public function folder_chooser( $connector='', $NAME='',$value='', $attr=array(), $style=array() ){
Expand Down Expand Up @@ -249,8 +250,8 @@ public function button( $NAME='', $value='', $attr=array() ){
* that has an associated tooltip dialog you can add any
* HTML text in it
*
* @param string $text: button value text
* @param string $dialog: tooltip dialog content text
* @param string $text button value text
* @param string $dialog tooltip dialog content text
* @param array/object/string attributes to be added to the button
* @return string button HTML string
*/
Expand Down Expand Up @@ -703,10 +704,10 @@ public function vbox( $content='', $attr=array(), $style=array() ){

/**
* used to manipulate attributes paramter in other functions
* @param $attr: object or array of attributes wanted to be manipulated
* @param $key: attribute to set
* @param $value: value of the attribute to set
* @param $replace: will replace current attribute value if exists or add it if not otherwise will it will add attribute of not exists only
* @param $attr object or array of attributes wanted to be manipulated
* @param $key attribute to set
* @param $value value of the attribute to set
* @param $replace will replace current attribute value if exists or add it if not otherwise will it will add attribute of not exists only
* @return void
*/
public function attribute( &$attr=array(), $key='', $value='', $replace=TRUE ){
Expand All @@ -725,7 +726,7 @@ public function attribute( &$attr=array(), $key='', $value='', $replace=TRUE ){
* a file list chooser that return a text with some lines every line is
* a choosen file ( it's a textarea interface with jquery)
*
* @param string $connector: URL to php file to use as ajax backend, with object like this
* @param string $connector URL to php file to use as ajax backend, with object like this
* <pre>
* {"identifier":"id","label":"description","items":[
* {"id":2,"description":"leaf1"},{"id":3,"description":"category","c":[
Expand All @@ -734,10 +735,10 @@ public function attribute( &$attr=array(), $key='', $value='', $replace=TRUE ){
* ]}
* ]}
* </pre>
* @param string $NAME: text input name and id
* @param strin $value: text input value
* @param array/object/string $attr: attributes->value associative array
* @param array/object/string $style: property->value associative array
* @param string $NAME text input name and id
* @param strin $value text input value
* @param array/object/string $attr attributes->value associative array
* @param array/object/string $style property->value associative array
* @return string HTML string for the chooser
*/
public function file_list( $connector, $NAME='',$value='', $attr=array(), $param=array(), $style=array()){
Expand Down Expand Up @@ -872,7 +873,7 @@ protected function _attributes_to_string( $attr= array() ){
* function to convert the style array to CSS attributes
*
* @param array/object $attr the attributes array you want to convert
* @return string HTML key: value; string sequence
* @return string HTML key value; string sequence
*/
protected function _array_to_style( $style=array() ){

Expand Down
1 change: 1 addition & 0 deletions application/libraries/System.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* @copyright 2011 Emad Elsaid a.k.a Blaze Boy
* @license http://www.gnu.org/licenses/gpl-2.0.txt GPL License 2.0
* @link https://github.com/blazeeboy/Codeigniter-Egypt
* @package Libraries
*/
class System {

Expand Down
1 change: 1 addition & 0 deletions application/models/content.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* @copyright 2011 Emad Elsaid a.k.a Blaze Boy
* @license http://www.gnu.org/licenses/gpl-2.0.txt GPL License 2.0
* @link https://github.com/blazeeboy/Codeigniter-Egypt
* @package Models
*/
class Content extends DataMapper {

Expand Down
1 change: 1 addition & 0 deletions application/models/group.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @copyright 2011 Emad Elsaid a.k.a Blaze Boy
* @license http://www.gnu.org/licenses/gpl-2.0.txt GPL License 2.0
* @link https://github.com/blazeeboy/Codeigniter-Egypt
* @package Models
*/
class Group extends DataMapper{

Expand Down
1 change: 1 addition & 0 deletions application/models/section.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
* @copyright 2011 Emad Elsaid a.k.a Blaze Boy
* @license http://www.gnu.org/licenses/gpl-2.0.txt GPL License 2.0
* @link https://github.com/blazeeboy/Codeigniter-Egypt
* @package Models
*/
class Section extends DataMapper {

Expand Down
1 change: 1 addition & 0 deletions application/models/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @copyright 2011 Emad Elsaid a.k.a Blaze Boy
* @license http://www.gnu.org/licenses/gpl-2.0.txt GPL License 2.0
* @link https://github.com/blazeeboy/Codeigniter-Egypt
* @package Models
*/
class User extends DataMapper{

Expand Down

0 comments on commit 3e94d0a

Please sign in to comment.