@@ -883,6 +883,9 @@ discard block |
||
883 | 883 | return $validation_result; |
884 | 884 | } |
885 | 885 | |
886 | + /** |
|
887 | + * @return boolean |
|
888 | + */ |
|
886 | 889 | protected function db_insert($state_info) |
887 | 890 | { |
888 | 891 | $validation_result = $this->db_insert_validation(); |
@@ -1351,6 +1354,9 @@ discard block |
||
1351 | 1354 | return $this->basic_model->get_relation_n_n_unselected_array($field_info, $selected_values); |
1352 | 1355 | } |
1353 | 1356 | |
1357 | + /** |
|
1358 | + * @param string $table_name |
|
1359 | + */ |
|
1354 | 1360 | protected function set_basic_db_table($table_name = null) |
1355 | 1361 | { |
1356 | 1362 | $this->basic_model->set_basic_table($table_name); |
@@ -1997,6 +2003,9 @@ discard block |
||
1997 | 2003 | $this->set_echo_and_die(); |
1998 | 2004 | } |
1999 | 2005 | |
2006 | + /** |
|
2007 | + * @param boolean $upload_result |
|
2008 | + */ |
|
2000 | 2009 | protected function delete_file_layout($upload_result) |
2001 | 2010 | { |
2002 | 2011 | @ob_end_clean(); |
@@ -2012,6 +2021,9 @@ discard block |
||
2012 | 2021 | $this->set_echo_and_die(); |
2013 | 2022 | } |
2014 | 2023 | |
2024 | + /** |
|
2025 | + * @param string $css_file |
|
2026 | + */ |
|
2015 | 2027 | public function set_css($css_file) |
2016 | 2028 | { |
2017 | 2029 | $this->css_files[sha1($css_file)] = base_url().$css_file; |
@@ -2022,12 +2034,18 @@ discard block |
||
2022 | 2034 | $this->js_files[sha1($js_file)] = base_url().$js_file; |
2023 | 2035 | } |
2024 | 2036 | |
2037 | + /** |
|
2038 | + * @param string $js_file |
|
2039 | + */ |
|
2025 | 2040 | public function set_js_lib($js_file) |
2026 | 2041 | { |
2027 | 2042 | $this->js_lib_files[sha1($js_file)] = base_url().$js_file; |
2028 | 2043 | $this->js_files[sha1($js_file)] = base_url().$js_file; |
2029 | 2044 | } |
2030 | 2045 | |
2046 | + /** |
|
2047 | + * @param string $js_file |
|
2048 | + */ |
|
2031 | 2049 | public function set_js_config($js_file) |
2032 | 2050 | { |
2033 | 2051 | $this->js_config_files[sha1($js_file)] = base_url().$js_file; |
@@ -2892,6 +2910,9 @@ discard block |
||
2892 | 2910 | return array_key_exists('is_ajax', $_POST) && $_POST['is_ajax'] == 'true' ? true: false; |
2893 | 2911 | } |
2894 | 2912 | |
2913 | + /** |
|
2914 | + * @param string $view |
|
2915 | + */ |
|
2895 | 2916 | protected function _theme_view($view, $vars = array(), $return = FALSE) |
2896 | 2917 | { |
2897 | 2918 | $vars = (is_object($vars)) ? get_object_vars($vars) : $vars; |
@@ -3551,7 +3572,7 @@ discard block |
||
3551 | 3572 | * @access public |
3552 | 3573 | * @param string |
3553 | 3574 | * @param array |
3554 | - * @return void |
|
3575 | + * @return Grocery_CRUD |
|
3555 | 3576 | */ |
3556 | 3577 | public function columns() |
3557 | 3578 | { |
@@ -3576,7 +3597,7 @@ discard block |
||
3576 | 3597 | * @access public |
3577 | 3598 | * @param mixed |
3578 | 3599 | * @param string |
3579 | - * @return void |
|
3600 | + * @return Grocery_CRUD |
|
3580 | 3601 | */ |
3581 | 3602 | function set_rules($field, $label = '', $rules = '') |
3582 | 3603 | { |
@@ -3643,7 +3664,7 @@ discard block |
||
3643 | 3664 | * @access public |
3644 | 3665 | * @param string |
3645 | 3666 | * @param array |
3646 | - * @return void |
|
3667 | + * @return Grocery_CRUD |
|
3647 | 3668 | */ |
3648 | 3669 | public function unset_texteditor() |
3649 | 3670 | { |
@@ -3665,7 +3686,7 @@ discard block |
||
3665 | 3686 | * Unsets just the jquery library from the js. This function can be used if there is already a jquery included |
3666 | 3687 | * in the main template. This will avoid all jquery conflicts. |
3667 | 3688 | * |
3668 | - * @return void |
|
3689 | + * @return Grocery_CRUD |
|
3669 | 3690 | */ |
3670 | 3691 | public function unset_jquery() |
3671 | 3692 | { |
@@ -3679,7 +3700,7 @@ discard block |
||
3679 | 3700 | * when the jquery UI JavaScript and CSS are already included in the main template. |
3680 | 3701 | * This will avoid all jquery UI conflicts. |
3681 | 3702 | * |
3682 | - * @return void |
|
3703 | + * @return Grocery_CRUD |
|
3683 | 3704 | */ |
3684 | 3705 | public function unset_jquery_ui() |
3685 | 3706 | { |
@@ -3692,7 +3713,7 @@ discard block |
||
3692 | 3713 | * Unsets just the twitter bootstrap libraries from the js and css. This function can be used if there is already twitter bootstrap files included |
3693 | 3714 | * in the main template. If you are already using a bootstrap template then it's not necessary to load the files again. |
3694 | 3715 | * |
3695 | - * @return void |
|
3716 | + * @return Grocery_CRUD |
|
3696 | 3717 | */ |
3697 | 3718 | public function unset_bootstrap() |
3698 | 3719 | { |
@@ -3704,7 +3725,7 @@ discard block |
||
3704 | 3725 | /** |
3705 | 3726 | * Unsets the add operation from the list |
3706 | 3727 | * |
3707 | - * @return void |
|
3728 | + * @return Grocery_CRUD |
|
3708 | 3729 | */ |
3709 | 3730 | public function unset_add() |
3710 | 3731 | { |
@@ -3716,7 +3737,7 @@ discard block |
||
3716 | 3737 | /** |
3717 | 3738 | * Unsets the edit operation from the list |
3718 | 3739 | * |
3719 | - * @return void |
|
3740 | + * @return Grocery_CRUD |
|
3720 | 3741 | */ |
3721 | 3742 | public function unset_edit() |
3722 | 3743 | { |
@@ -3728,7 +3749,7 @@ discard block |
||
3728 | 3749 | /** |
3729 | 3750 | * Unsets the delete operation from the list |
3730 | 3751 | * |
3731 | - * @return void |
|
3752 | + * @return Grocery_CRUD |
|
3732 | 3753 | */ |
3733 | 3754 | public function unset_delete() |
3734 | 3755 | { |
@@ -3740,7 +3761,7 @@ discard block |
||
3740 | 3761 | /** |
3741 | 3762 | * Unsets the read operation from the list |
3742 | 3763 | * |
3743 | - * @return void |
|
3764 | + * @return Grocery_CRUD |
|
3744 | 3765 | */ |
3745 | 3766 | public function unset_read() |
3746 | 3767 | { |
@@ -3762,7 +3783,7 @@ discard block |
||
3762 | 3783 | /** |
3763 | 3784 | * Unsets the export button and functionality from the list |
3764 | 3785 | * |
3765 | - * @return void |
|
3786 | + * @return Grocery_CRUD |
|
3766 | 3787 | */ |
3767 | 3788 | public function unset_export() |
3768 | 3789 | { |
@@ -3775,7 +3796,7 @@ discard block |
||
3775 | 3796 | /** |
3776 | 3797 | * Unsets the print button and functionality from the list |
3777 | 3798 | * |
3778 | - * @return void |
|
3799 | + * @return Grocery_CRUD |
|
3779 | 3800 | */ |
3780 | 3801 | public function unset_print() |
3781 | 3802 | { |
@@ -3787,7 +3808,7 @@ discard block |
||
3787 | 3808 | /** |
3788 | 3809 | * Unsets all the operations from the list |
3789 | 3810 | * |
3790 | - * @return void |
|
3811 | + * @return Grocery_CRUD |
|
3791 | 3812 | */ |
3792 | 3813 | public function unset_operations() |
3793 | 3814 | { |
@@ -3889,7 +3910,7 @@ discard block |
||
3889 | 3910 | /** |
3890 | 3911 | * Unsets everything that has to do with buttons or links with go back to list message |
3891 | 3912 | * @access public |
3892 | - * @return void |
|
3913 | + * @return Grocery_CRUD |
|
3893 | 3914 | */ |
3894 | 3915 | public function unset_back_to_list() |
3895 | 3916 | { |
@@ -3905,7 +3926,7 @@ discard block |
||
3905 | 3926 | * @access public |
3906 | 3927 | * @param string |
3907 | 3928 | * @param array |
3908 | - * @return void |
|
3929 | + * @return Grocery_CRUD |
|
3909 | 3930 | */ |
3910 | 3931 | public function fields() |
3911 | 3932 | { |
@@ -3974,9 +3995,9 @@ discard block |
||
3974 | 3995 | /** |
3975 | 3996 | * |
3976 | 3997 | * Changes the displaying label of the field |
3977 | - * @param $field_name |
|
3978 | - * @param $display_as |
|
3979 | - * @return void |
|
3998 | + * @param string $field_name |
|
3999 | + * @param string $display_as |
|
4000 | + * @return Grocery_CRUD |
|
3980 | 4001 | */ |
3981 | 4002 | public function display_as($field_name, $display_as = null) |
3982 | 4003 | { |
@@ -4048,7 +4069,7 @@ discard block |
||
4048 | 4069 | * |
4049 | 4070 | * Set a language string directly |
4050 | 4071 | * @param string $handle |
4051 | - * @param string $string |
|
4072 | + * @param string $lang_string |
|
4052 | 4073 | */ |
4053 | 4074 | public function set_lang_string($handle, $lang_string){ |
4054 | 4075 | $this->lang_strings[$handle] = $lang_string; |
@@ -5157,7 +5178,6 @@ discard block |
||
5157 | 5178 | * Transform a field to an upload field |
5158 | 5179 | * |
5159 | 5180 | * @param string $field_name |
5160 | - * @param string $upload_path |
|
5161 | 5181 | * @return Grocery_CRUD |
5162 | 5182 | */ |
5163 | 5183 | public function set_field_upload($field_name, $upload_dir = '', $allowed_file_types = '') |
@@ -5273,6 +5293,9 @@ discard block |
||
5273 | 5293 | substr($_SERVER['SCRIPT_NAME'],0, strrpos($_SERVER['SCRIPT_NAME'], '/')); |
5274 | 5294 | } |
5275 | 5295 | |
5296 | + /** |
|
5297 | + * @param string $file_name |
|
5298 | + */ |
|
5276 | 5299 | private function get_file_object($file_name) { |
5277 | 5300 | $file_path = $this->options['upload_dir'].$file_name; |
5278 | 5301 | if (is_file($file_path) && $file_name[0] !== '.') { |
@@ -5301,6 +5324,9 @@ discard block |
||
5301 | 5324 | ))); |
5302 | 5325 | } |
5303 | 5326 | |
5327 | + /** |
|
5328 | + * @param string $file_name |
|
5329 | + */ |
|
5304 | 5330 | private function create_scaled_image($file_name, $options) { |
5305 | 5331 | $file_path = $this->options['upload_dir'].$file_name; |
5306 | 5332 | $new_file_path = $options['upload_dir'].$file_name; |
@@ -5354,6 +5380,9 @@ discard block |
||
5354 | 5380 | return $success; |
5355 | 5381 | } |
5356 | 5382 | |
5383 | + /** |
|
5384 | + * @param stdClass $file |
|
5385 | + */ |
|
5357 | 5386 | private function has_error($uploaded_file, $file, $error) { |
5358 | 5387 | if ($error) { |
5359 | 5388 | switch($error) { |
@@ -5424,6 +5453,9 @@ discard block |
||
5424 | 5453 | return $file_name; |
5425 | 5454 | } |
5426 | 5455 | |
5456 | + /** |
|
5457 | + * @param string $file_name |
|
5458 | + */ |
|
5427 | 5459 | private function _transliterate_characters($file_name) |
5428 | 5460 | { |
5429 | 5461 | include($this->default_config_path.'/translit_chars.php'); |
@@ -5438,6 +5470,9 @@ discard block |
||
5438 | 5470 | return preg_replace('/\-+/', '-', trim($file_name, '-')); |
5439 | 5471 | } |
5440 | 5472 | |
5473 | + /** |
|
5474 | + * @param string $file_path |
|
5475 | + */ |
|
5441 | 5476 | private function orient_image($file_path) { |
5442 | 5477 | $exif = exif_read_data($file_path); |
5443 | 5478 | $orientation = intval(@$exif['Orientation']); |
@@ -483,6 +483,7 @@ |
||
483 | 483 | /** |
484 | 484 | * Return path to ckeditor.js. |
485 | 485 | * \private |
486 | + * @return string |
|
486 | 487 | */ |
487 | 488 | function ckeditorPath() |
488 | 489 | { |