@@ -93,6 +93,14 @@ |
||
93 | 93 | } |
94 | 94 | |
95 | 95 | |
96 | + /** |
|
97 | + * @param string $analytics |
|
98 | + * @param string $hostbd |
|
99 | + * @param string $nombrebd |
|
100 | + * @param string $usuariobd |
|
101 | + * @param string $clavebd |
|
102 | + * @param string $config |
|
103 | + */ |
|
96 | 104 | public function paso1($proyecto,$analytics,$hostbd,$nombrebd,$usuariobd,$usuariobd,$clavebd,$config){ |
97 | 105 | |
98 | 106 |
@@ -72,6 +72,9 @@ |
||
72 | 72 | exit(); |
73 | 73 | } |
74 | 74 | |
75 | + /** |
|
76 | + * @param string $url |
|
77 | + */ |
|
75 | 78 | function redireccionUrl($url){ |
76 | 79 | $url=Cf_BASE_URL.$url; |
77 | 80 | header('Location: ' . $url); |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | * |
75 | 75 | * @access public |
76 | 76 | * @param string $clave |
77 | - * @param mixed $content the the content you want to store |
|
77 | + * @param mixed $contenido the the content you want to store |
|
78 | 78 | * @param bool $raw whether if you want to store raw data or not. If it is true, $content *must* be a string |
79 | 79 | * It can be useful for static html caching. |
80 | 80 | * @return bool whether if the operation was successful or not |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | * Check if a file has expired or not. |
113 | 113 | * |
114 | 114 | * @access public |
115 | - * @param $archivo the rout to the file |
|
115 | + * @param string $archivo the rout to the file |
|
116 | 116 | * @param int $fecha the number of minutes it was set to expire |
117 | 117 | * @return bool if the file has expired or not |
118 | 118 | */ |
@@ -330,7 +330,6 @@ discard block |
||
330 | 330 | * @name validate |
331 | 331 | * @tutorial this function validate items sends trhough form. It DON'T FILTER |
332 | 332 | * Basically simulate HTML5 trhoguh PHP for full compatibility |
333 | - * @param boolean $error_list If is true, it generate in $this->error_list a list with data required |
|
334 | 333 | */ |
335 | 334 | public function validate() { |
336 | 335 | $this->error_list = ''; // Clean error list |
@@ -480,7 +479,7 @@ discard block |
||
480 | 479 | * @name validateArray |
481 | 480 | * This functions validate an Array, is a complement to validateRadio, select... |
482 | 481 | * @param array/string $values List of values to validate |
483 | - * @param array/string $value/s selecteds by user |
|
482 | + * @param array/string $value selecteds by user |
|
484 | 483 | */ |
485 | 484 | private function validateArray($values, $value, $data = array()) { |
486 | 485 | if (is_array($values)) { |
@@ -508,7 +507,6 @@ discard block |
||
508 | 507 | /** |
509 | 508 | * @name validateRadio |
510 | 509 | * @tutorial This function test if an radio is valid depending assigned values |
511 | - * @param array $data Contains all information about input |
|
512 | 510 | * @return boolean If return true, its okay |
513 | 511 | */ |
514 | 512 | private function validateRadio($params) { |
@@ -540,7 +538,6 @@ discard block |
||
540 | 538 | /** |
541 | 539 | * @name validateSelect |
542 | 540 | * @tutorial This function test if an select is valid depending assigned values |
543 | - * @param array $data Contains all information about input |
|
544 | 541 | * @return boolean If return true, its okay |
545 | 542 | */ |
546 | 543 | private function validateSelect($param) { |
@@ -775,7 +772,6 @@ discard block |
||
775 | 772 | * @param string $name Select name |
776 | 773 | * @param array $values Array('value'=>'text to show') |
777 | 774 | * @param boolean $required Specify if select is required |
778 | - * @param string $id ID Specify ID to manipulate via javascript or CSS |
|
779 | 775 | * @param array $attributes Optional atributes not listened (in array). |
780 | 776 | */ |
781 | 777 | public function addSelect($label = '', $name = '', $values = '', $selected = null, $required = false, $multiple = false, $attributes = array()) { |
@@ -849,7 +845,6 @@ discard block |
||
849 | 845 | * @name addButton |
850 | 846 | * @tutorial Use this function to add a button with "onclick" action (or id/class to call via jquery) |
851 | 847 | * @param string $value Name to show in button and ID |
852 | - * @param string $onClick Action to load when button is clicked |
|
853 | 848 | * @param array $attributes Optional atributes not listened (in array). |
854 | 849 | */ |
855 | 850 | public function addTextArea($label = '', $name = '', $value = '', $required = false, $attributes = array()) { |
@@ -878,7 +873,6 @@ discard block |
||
878 | 873 | /** |
879 | 874 | * @name log |
880 | 875 | * @tutorial Save a log if is enabled logging |
881 | - * @param boolean $save If is true, save the log |
|
882 | 876 | * @param string $message Message to log |
883 | 877 | */ |
884 | 878 | private function log($message, $data = array()) { |
@@ -59,6 +59,10 @@ discard block |
||
59 | 59 | return $cadenaAleatoria; |
60 | 60 | } |
61 | 61 | // encriptacion |
62 | + |
|
63 | + /** |
|
64 | + * @param string $clave |
|
65 | + */ |
|
62 | 66 | function cifrado($clave){ |
63 | 67 | $cfi=sha1(md5($clave)); |
64 | 68 | return $clave=Cf_KEY_MD5.$cfi; |
@@ -130,9 +134,6 @@ discard block |
||
130 | 134 | * |
131 | 135 | * @strip injection chars from email headers |
132 | 136 | * |
133 | - * @param string $string |
|
134 | - * |
|
135 | - * return string |
|
136 | 137 | * |
137 | 138 | */ |
138 | 139 | function emailSeguro($cadena) { |
@@ -201,7 +201,7 @@ discard block |
||
201 | 201 | * in. |
202 | 202 | * |
203 | 203 | * @param string $newSql the query |
204 | - * @param array $bindings the bindings to process (key-value pairs) |
|
204 | + * @param array $newBindings the bindings to process (key-value pairs) |
|
205 | 205 | * |
206 | 206 | * @return string |
207 | 207 | */ |
@@ -378,7 +378,7 @@ discard block |
||
378 | 378 | * @param string $sql SQL to be executed |
379 | 379 | * @param array $bindings list of values to bind to SQL snippet |
380 | 380 | * |
381 | - * @return array |
|
381 | + * @return integer |
|
382 | 382 | */ |
383 | 383 | public function GetAll( $sql, $bindings = array() ); |
384 | 384 | |
@@ -409,7 +409,7 @@ discard block |
||
409 | 409 | * @param string $sql SQL to execute |
410 | 410 | * @param array $bindings list of values to bind to SQL snippet |
411 | 411 | * |
412 | - * @return mixed |
|
412 | + * @return integer |
|
413 | 413 | */ |
414 | 414 | public function GetAssocRow( $sql, $bindings = array() ); |
415 | 415 | |
@@ -437,7 +437,7 @@ discard block |
||
437 | 437 | * @param string $sql SQL Code to execute |
438 | 438 | * @param array $bindings list of values to bind to SQL snippet |
439 | 439 | * |
440 | - * @return array Affected Rows |
|
440 | + * @return integer Affected Rows |
|
441 | 441 | */ |
442 | 442 | public function Execute( $sql, $bindings = array() ); |
443 | 443 | |
@@ -463,7 +463,7 @@ discard block |
||
463 | 463 | * @param string $sql SQL code to execute |
464 | 464 | * @param array $bindings Bindings |
465 | 465 | * |
466 | - * @return mixed |
|
466 | + * @return Cursor\PDOCursor |
|
467 | 467 | */ |
468 | 468 | public function GetCursor( $sql, $bindings = array() ); |
469 | 469 | |
@@ -474,8 +474,8 @@ discard block |
||
474 | 474 | * passes on to the screen for inspection. |
475 | 475 | * This method has no return value. |
476 | 476 | * |
477 | - * @param boolean $trueFalse turn on/off |
|
478 | 477 | * |
478 | + * @param boolean $tf |
|
479 | 479 | * @return void |
480 | 480 | */ |
481 | 481 | public function setDebugMode( $tf ); |
@@ -647,7 +647,7 @@ discard block |
||
647 | 647 | * @param string $sql the SQL string to be send to database server |
648 | 648 | * @param array $bindings the values that need to get bound to the query slots |
649 | 649 | * |
650 | - * @return void |
|
650 | + * @return \PDOStatement |
|
651 | 651 | * |
652 | 652 | * @throws SQL |
653 | 653 | */ |
@@ -717,7 +717,7 @@ discard block |
||
717 | 717 | * $driver = new RPDO($dsn, $user, $password); |
718 | 718 | * $driver = new RPDO($existingConnection); |
719 | 719 | * |
720 | - * @param string|object $dsn database connection string |
|
720 | + * @param string $dsn database connection string |
|
721 | 721 | * @param string $user optional, usename to sign in |
722 | 722 | * @param string $pass optional, password for connection login |
723 | 723 | * |
@@ -813,7 +813,7 @@ discard block |
||
813 | 813 | * this method if you are an expert on RedBeanPHP, PDO and UTF8 connections and |
814 | 814 | * you know your database server VERY WELL. |
815 | 815 | * |
816 | - * @param PDO $pdo PDO instance |
|
816 | + * @param \PDO $pdo PDO instance |
|
817 | 817 | * |
818 | 818 | * @return void |
819 | 819 | */ |
@@ -940,7 +940,6 @@ discard block |
||
940 | 940 | * SQL to the screen together with some information about the |
941 | 941 | * results. |
942 | 942 | * |
943 | - * @param boolean $trueFalse turn on/off |
|
944 | 943 | * @param Logger $logger logger instance |
945 | 944 | * |
946 | 945 | * @return void |
@@ -1408,7 +1407,6 @@ discard block |
||
1408 | 1407 | * Obtains the own list of a certain type. |
1409 | 1408 | * |
1410 | 1409 | * @param string $type name of the list you want to retrieve |
1411 | - * @param OODB $oodb The RB OODB object database instance |
|
1412 | 1410 | * |
1413 | 1411 | * @return array |
1414 | 1412 | */ |
@@ -2235,7 +2233,6 @@ discard block |
||
2235 | 2233 | * of combining a get/unset. |
2236 | 2234 | * |
2237 | 2235 | * @param string $path path |
2238 | - * @param mixed $default default value |
|
2239 | 2236 | * |
2240 | 2237 | * @return mixed |
2241 | 2238 | */ |
@@ -2450,7 +2447,6 @@ discard block |
||
2450 | 2447 | * For polymorphic bean relations. |
2451 | 2448 | * Same as fetchAs but uses a column instead of a direct value. |
2452 | 2449 | * |
2453 | - * @param string $column |
|
2454 | 2450 | * |
2455 | 2451 | * @return OODBBean |
2456 | 2452 | */ |
@@ -2688,7 +2684,6 @@ discard block |
||
2688 | 2684 | * example #1. After preparing the linking bean, the bean is returned thus |
2689 | 2685 | * allowing the chained setter: ->song = $song. |
2690 | 2686 | * |
2691 | - * @param string|OODBBean $type type of bean to dispense or the full bean |
|
2692 | 2687 | * @param string|array $qualification JSON string or array (optional) |
2693 | 2688 | * |
2694 | 2689 | * @return OODBBean |
@@ -2959,7 +2954,7 @@ discard block |
||
2959 | 2954 | * this event. Part of the observer pattern implementation in RedBeanPHP. |
2960 | 2955 | * |
2961 | 2956 | * @param string $eventname event you want signal |
2962 | - * @param mixed $info message object to send along |
|
2957 | + * @param Adapter\DBAdapter $info message object to send along |
|
2963 | 2958 | * |
2964 | 2959 | * @return void |
2965 | 2960 | */ |
@@ -3158,7 +3153,7 @@ discard block |
||
3158 | 3153 | * adapter. RedBean will only access the adapter and never to talk |
3159 | 3154 | * directly to the driver though. |
3160 | 3155 | * |
3161 | - * @return object |
|
3156 | + * @return Driver |
|
3162 | 3157 | */ |
3163 | 3158 | public function getDatabase(); |
3164 | 3159 | |
@@ -3352,6 +3347,7 @@ discard block |
||
3352 | 3347 | |
3353 | 3348 | /** |
3354 | 3349 | * @see Adapter::getCell |
3350 | + * @param integer $noSignal |
|
3355 | 3351 | */ |
3356 | 3352 | public function getCell( $sql, $bindings = array(), $noSignal = NULL ) |
3357 | 3353 | { |
@@ -3497,7 +3493,7 @@ discard block |
||
3497 | 3493 | /** |
3498 | 3494 | * Constructor, creates a new instance of a PDO Database Cursor. |
3499 | 3495 | * |
3500 | - * @param PDOStatement $res the PDO statement |
|
3496 | + * @param \PDOStatement $res the PDO statement |
|
3501 | 3497 | * @param string $fetchStyle fetch style constant to use |
3502 | 3498 | * |
3503 | 3499 | * @return void |
@@ -3728,7 +3724,7 @@ discard block |
||
3728 | 3724 | * |
3729 | 3725 | * @param string $type source type |
3730 | 3726 | * @param string $targetType target type (type to join) |
3731 | - * @param string $leftRight type of join (possible: 'LEFT', 'RIGHT' or 'INNER'). |
|
3727 | + * @param string $joinType |
|
3732 | 3728 | * |
3733 | 3729 | * @return string $joinSQLSnippet |
3734 | 3730 | */ |
@@ -3867,7 +3863,6 @@ discard block |
||
3867 | 3863 | * |
3868 | 3864 | * @param string $type name of the table you want to query |
3869 | 3865 | * @param array $conditions criteria ( $column => array( $values ) ) |
3870 | - * @param string $addSQL additional SQL snippet |
|
3871 | 3866 | * @param array $bindings bindings for SQL snippet |
3872 | 3867 | * |
3873 | 3868 | * @return array |
@@ -3880,8 +3875,6 @@ discard block |
||
3880 | 3875 | * type, conditions (optional) and additional SQL snippet (optional). |
3881 | 3876 | * |
3882 | 3877 | * @param string $type name of the table you want to query |
3883 | - * @param array $conditions criteria ( $column => array( $values ) ) |
|
3884 | - * @param string $addSQL additional SQL snippet |
|
3885 | 3878 | * @param array $bindings bindings for SQL snippet |
3886 | 3879 | * |
3887 | 3880 | * @return Cursor |
@@ -3910,7 +3903,7 @@ discard block |
||
3910 | 3903 | * @param string $sourceID ID for the source |
3911 | 3904 | * @param string $destID ID for the destination |
3912 | 3905 | * |
3913 | - * @return array|null |
|
3906 | + * @return string |
|
3914 | 3907 | */ |
3915 | 3908 | public function queryRecordLink( $sourceType, $destType, $sourceID, $destID ); |
3916 | 3909 | |
@@ -3920,7 +3913,6 @@ discard block |
||
3920 | 3913 | * |
3921 | 3914 | * @param string $type name of the table you want to query |
3922 | 3915 | * @param array $conditions criteria ( $column => array( $values ) ) |
3923 | - * @param string $addSQL additional SQL snippet |
|
3924 | 3916 | * @param array $bindings bindings for SQL snippet |
3925 | 3917 | * |
3926 | 3918 | * @return integer |
@@ -3979,7 +3971,6 @@ discard block |
||
3979 | 3971 | * |
3980 | 3972 | * @param string $type name of the table you want to query |
3981 | 3973 | * @param array $conditions criteria ( $column => array( $values ) ) |
3982 | - * @param string $sql additional SQL |
|
3983 | 3974 | * @param array $bindings bindings |
3984 | 3975 | * |
3985 | 3976 | * @return void |
@@ -4007,7 +3998,6 @@ discard block |
||
4007 | 3998 | * This methods accepts a type and infers the corresponding table name. |
4008 | 3999 | * |
4009 | 4000 | * @param string $type type |
4010 | - * @param array $columnsPartOfIndex columns to include in index |
|
4011 | 4001 | * |
4012 | 4002 | * @return void |
4013 | 4003 | */ |
@@ -4078,7 +4068,7 @@ discard block |
||
4078 | 4068 | * SQL policies and does therefore not require database specific escaping rules. |
4079 | 4069 | * |
4080 | 4070 | * @param string $databaseStructure name of the column/table to check |
4081 | - * @param boolean $noQuotes TRUE to NOT put backticks or quotes around the string |
|
4071 | + * @param boolean $dontQuote TRUE to NOT put backticks or quotes around the string |
|
4082 | 4072 | * |
4083 | 4073 | * @return string |
4084 | 4074 | */ |
@@ -4107,7 +4097,7 @@ discard block |
||
4107 | 4097 | * This method also accepts a single associative array as |
4108 | 4098 | * its first argument. |
4109 | 4099 | * |
4110 | - * @param string|array $fromType |
|
4100 | + * @param string $fromType |
|
4111 | 4101 | * @param string $toType (optional) |
4112 | 4102 | * |
4113 | 4103 | * @return void |
@@ -4138,7 +4128,7 @@ discard block |
||
4138 | 4128 | * it's optional. A default version is available in AQueryWriter. |
4139 | 4129 | * |
4140 | 4130 | * @param $type the source type to fetch a target type for |
4141 | - * @param $property the property to fetch the type of |
|
4131 | + * @param string $property the property to fetch the type of |
|
4142 | 4132 | * |
4143 | 4133 | * @return string|NULL |
4144 | 4134 | */ |
@@ -4743,7 +4733,6 @@ discard block |
||
4743 | 4733 | * Inserts a record into the database using a series of insert columns |
4744 | 4734 | * and corresponding insertvalues. Returns the insert id. |
4745 | 4735 | * |
4746 | - * @param string $table table to perform query on |
|
4747 | 4736 | * @param array $insertcolumns columns to be inserted |
4748 | 4737 | * @param array $insertvalues values to be inserted |
4749 | 4738 | * |
@@ -4791,7 +4780,6 @@ discard block |
||
4791 | 4780 | /** |
4792 | 4781 | * Checks table name or column name. |
4793 | 4782 | * |
4794 | - * @param string $table table string |
|
4795 | 4783 | * |
4796 | 4784 | * @return string |
4797 | 4785 | * |
@@ -5206,6 +5194,9 @@ discard block |
||
5206 | 5194 | |
5207 | 5195 | /** |
5208 | 5196 | * @see QueryWriter::widenColumn |
5197 | + * @param string $type |
|
5198 | + * @param string $property |
|
5199 | + * @param integer $dataType |
|
5209 | 5200 | */ |
5210 | 5201 | public function widenColumn( $type, $property, $dataType ) |
5211 | 5202 | { |
@@ -5241,6 +5232,7 @@ discard block |
||
5241 | 5232 | |
5242 | 5233 | /** |
5243 | 5234 | * @see QueryWriter::getAssocTable |
5235 | + * @param string[] $types |
|
5244 | 5236 | */ |
5245 | 5237 | public function getAssocTable( $types ) |
5246 | 5238 | { |
@@ -5857,9 +5849,8 @@ discard block |
||
5857 | 5849 | * |
5858 | 5850 | * @param string $type type you want to modify table of |
5859 | 5851 | * @param string $targetType target type |
5860 | - * @param string $field field of the type that needs to get the fk |
|
5861 | - * @param string $targetField field where the fk needs to point to |
|
5862 | - * @param integer $buildopt 0 = NO ACTION, 1 = ON DELETE CASCADE |
|
5852 | + * @param string $property |
|
5853 | + * @param string $targetProperty |
|
5863 | 5854 | * |
5864 | 5855 | * @return boolean $didIt |
5865 | 5856 | * |
@@ -5893,6 +5884,7 @@ discard block |
||
5893 | 5884 | |
5894 | 5885 | /** |
5895 | 5886 | * @see AQueryWriter::getKeyMapForType |
5887 | + * @param string $type |
|
5896 | 5888 | */ |
5897 | 5889 | protected function getKeyMapForType( $type ) |
5898 | 5890 | { |
@@ -6710,7 +6702,7 @@ discard block |
||
6710 | 6702 | /** |
6711 | 6703 | * Processes an embedded bean. |
6712 | 6704 | * |
6713 | - * @param OODBBean|SimpleModel $embeddedBean the bean or model |
|
6705 | + * @param OODBBean $embeddedBean the bean or model |
|
6714 | 6706 | * |
6715 | 6707 | * @return integer |
6716 | 6708 | */ |
@@ -6752,7 +6744,6 @@ discard block |
||
6752 | 6744 | * checks if there have been any modification to this bean, in that case |
6753 | 6745 | * the bean is stored once again, otherwise the bean will be left untouched. |
6754 | 6746 | * |
6755 | - * @param OODBBean $bean the bean |
|
6756 | 6747 | * @param array $ownresidue list |
6757 | 6748 | * |
6758 | 6749 | * @return void |
@@ -6943,7 +6934,6 @@ discard block |
||
6943 | 6934 | * |
6944 | 6935 | * @param string $type type of beans you are looking for |
6945 | 6936 | * @param array $conditions list of conditions |
6946 | - * @param string $addSQL SQL to be used in query |
|
6947 | 6937 | * @param array $bindings whether you prefer to use a WHERE clause or not (TRUE = not) |
6948 | 6938 | * |
6949 | 6939 | * @return array |
@@ -7448,7 +7438,7 @@ discard block |
||
7448 | 7438 | * configuration for you. |
7449 | 7439 | * |
7450 | 7440 | * @param string $type type of bean you want to dispense |
7451 | - * @param string $number number of beans you would like to get |
|
7441 | + * @param integer $number number of beans you would like to get |
|
7452 | 7442 | * @param boolean $alwaysReturnArray if TRUE always returns the result as an array |
7453 | 7443 | * |
7454 | 7444 | * @return OODBBean |
@@ -7651,7 +7641,7 @@ discard block |
||
7651 | 7641 | * configuration for you. |
7652 | 7642 | * |
7653 | 7643 | * @param string $type type of bean you want to dispense |
7654 | - * @param string $number number of beans you would like to get |
|
7644 | + * @param integer $number number of beans you would like to get |
|
7655 | 7645 | * @param boolean $alwaysReturnArray if TRUE always returns the result as an array |
7656 | 7646 | * |
7657 | 7647 | * @return OODBBean |
@@ -7846,7 +7836,7 @@ discard block |
||
7846 | 7836 | * Constructor, requires a query writer. |
7847 | 7837 | * |
7848 | 7838 | * @param QueryWriter $writer writer |
7849 | - * @param array|boolean $frozen mode of operation: TRUE (frozen), FALSE (default, fluid) or ARRAY (chilled) |
|
7839 | + * @param boolean $frozen mode of operation: TRUE (frozen), FALSE (default, fluid) or ARRAY (chilled) |
|
7850 | 7840 | */ |
7851 | 7841 | public function __construct( QueryWriter $writer, $frozen = FALSE ) |
7852 | 7842 | { |
@@ -7940,7 +7930,7 @@ discard block |
||
7940 | 7930 | * configuration for you. |
7941 | 7931 | * |
7942 | 7932 | * @param string $type type of bean you want to dispense |
7943 | - * @param string $number number of beans you would like to get |
|
7933 | + * @param integer $number number of beans you would like to get |
|
7944 | 7934 | * @param boolean $alwaysReturnArray if TRUE always returns the result as an array |
7945 | 7935 | * |
7946 | 7936 | * @return OODBBean |
@@ -8014,8 +8004,8 @@ discard block |
||
8014 | 8004 | * |
8015 | 8005 | * @param string $type type of beans you are looking for |
8016 | 8006 | * @param array $conditions list of conditions |
8017 | - * @param string $addSQL SQL to be used in query |
|
8018 | 8007 | * @param array $bindings whether you prefer to use a WHERE clause or not (TRUE = not) |
8008 | + * @param string $sql |
|
8019 | 8009 | * |
8020 | 8010 | * @return array |
8021 | 8011 | * |
@@ -8030,10 +8020,10 @@ discard block |
||
8030 | 8020 | * Same as find() but returns a BeanCollection. |
8031 | 8021 | * |
8032 | 8022 | * @param string $type type of beans you are looking for |
8033 | - * @param string $addSQL SQL to be used in query |
|
8034 | 8023 | * @param array $bindings whether you prefer to use a WHERE clause or not (TRUE = not) |
8024 | + * @param string $sql |
|
8035 | 8025 | * |
8036 | - * @return array |
|
8026 | + * @return BeanCollection |
|
8037 | 8027 | * |
8038 | 8028 | * @throws SQL |
8039 | 8029 | */ |
@@ -8222,7 +8212,6 @@ discard block |
||
8222 | 8212 | * A simple setter function to set the association manager to be used for storage and |
8223 | 8213 | * more. |
8224 | 8214 | * |
8225 | - * @param AssociationManager $assoc sets the association manager to be used |
|
8226 | 8215 | * |
8227 | 8216 | * @return void |
8228 | 8217 | */ |
@@ -8685,7 +8674,6 @@ discard block |
||
8685 | 8674 | * @note instead of an SQL query you can pass a result array as well. |
8686 | 8675 | * |
8687 | 8676 | * @param string|array $types a list of types (either array or comma separated string) |
8688 | - * @param string|array $sqlOrArr an SQL query or an array of prefetched records |
|
8689 | 8677 | * @param array $bindings optional, bindings for SQL query |
8690 | 8678 | * @param array $remappings optional, an array of remapping arrays |
8691 | 8679 | * @param string $queryTemplate optional, query template |
@@ -8936,7 +8924,7 @@ discard block |
||
8936 | 8924 | * two in a link table. Instead of two single beans this method also accepts |
8937 | 8925 | * two sets of beans. Returns the ID or the IDs of the linking beans. |
8938 | 8926 | * |
8939 | - * @param OODBBean|array $beans1 one or more beans to form the association |
|
8927 | + * @param OODBBean $beans1 one or more beans to form the association |
|
8940 | 8928 | * @param OODBBean|array $beans2 one or more beans to form the association |
8941 | 8929 | * |
8942 | 8930 | * @return array |
@@ -8969,7 +8957,7 @@ discard block |
||
8969 | 8957 | * with reference bean(s) $bean. The query can be tuned using an |
8970 | 8958 | * SQL snippet for additional filtering. |
8971 | 8959 | * |
8972 | - * @param OODBBean|array $bean a bean object or an array of beans |
|
8960 | + * @param OODBBean $bean a bean object or an array of beans |
|
8973 | 8961 | * @param string $type type of bean you're interested in |
8974 | 8962 | * @param string $sql SQL snippet (optional) |
8975 | 8963 | * @param array $bindings bindings for your SQL string |
@@ -9010,8 +8998,8 @@ discard block |
||
9010 | 8998 | * set to boolean TRUE this method will remove the beans without their consent, |
9011 | 8999 | * bypassing FUSE. This can be used to improve performance. |
9012 | 9000 | * |
9013 | - * @param OODBBean $bean1 first bean |
|
9014 | - * @param OODBBean $bean2 second bean |
|
9001 | + * @param OODBBean $beans1 first bean |
|
9002 | + * @param OODBBean $beans2 second bean |
|
9015 | 9003 | * @param boolean $fast If TRUE, removes the entries by query without FUSE |
9016 | 9004 | * |
9017 | 9005 | * @return void |
@@ -9093,7 +9081,6 @@ discard block |
||
9093 | 9081 | * @param string $type the type of beans you want |
9094 | 9082 | * @param string $sql SQL snippet for extra filtering |
9095 | 9083 | * @param array $bindings values to be inserted in SQL slots |
9096 | - * @param boolean $glue whether the SQL should be prefixed with WHERE |
|
9097 | 9084 | * |
9098 | 9085 | * @return array |
9099 | 9086 | */ |
@@ -10337,7 +10324,6 @@ discard block |
||
10337 | 10324 | * Let's call this chilly mode, it's just like fluid mode except that |
10338 | 10325 | * certain types (i.e. tables) aren't touched. |
10339 | 10326 | * |
10340 | - * @param boolean|array $trueFalse |
|
10341 | 10327 | */ |
10342 | 10328 | public static function freeze( $tf = TRUE ) |
10343 | 10329 | { |
@@ -10412,7 +10398,6 @@ discard block |
||
10412 | 10398 | * in the latter case this method will attempt to load the specified bean |
10413 | 10399 | * and THEN trash it. |
10414 | 10400 | * |
10415 | - * @param string|OODBBean|SimpleModel $bean bean you want to remove from database |
|
10416 | 10401 | * @param integer $id (optional) |
10417 | 10402 | * |
10418 | 10403 | * @return void |
@@ -10428,7 +10413,6 @@ discard block |
||
10428 | 10413 | * the rest of the methods. |
10429 | 10414 | * |
10430 | 10415 | * @param string|array $typeOrBeanArray type or bean array to import |
10431 | - * @param integer $number number of beans to dispense |
|
10432 | 10416 | * @param boolean $alwaysReturnArray if TRUE always returns the result as an array |
10433 | 10417 | * |
10434 | 10418 | * @return array|OODBBean |
@@ -10630,7 +10614,6 @@ discard block |
||
10630 | 10614 | * @see Finder::findMulti() |
10631 | 10615 | * |
10632 | 10616 | * @param array|string $types a list of bean types to find |
10633 | - * @param string|array $sqlOrArr SQL query string or result set array |
|
10634 | 10617 | * @param array $bindings SQL bindings |
10635 | 10618 | * @param array $remappings An array of remapping arrays containing closures |
10636 | 10619 | * |
@@ -10787,7 +10770,7 @@ discard block |
||
10787 | 10770 | * Returns the insert ID for databases that support/require this |
10788 | 10771 | * functionality. Alias for R::getAdapter()->getInsertID(). |
10789 | 10772 | * |
10790 | - * @return mixed |
|
10773 | + * @return integer |
|
10791 | 10774 | */ |
10792 | 10775 | public static function getInsertID() |
10793 | 10776 | { |
@@ -10816,9 +10799,8 @@ discard block |
||
10816 | 10799 | * @param OODBBean $bean bean to be copied |
10817 | 10800 | * @param array $trail for internal usage, pass array() |
10818 | 10801 | * @param boolean $pid for internal usage |
10819 | - * @param array $white white list filter with bean types to duplicate |
|
10820 | 10802 | * |
10821 | - * @return array |
|
10803 | + * @return OODBBean |
|
10822 | 10804 | */ |
10823 | 10805 | public static function dup( $bean, $trail = array(), $pid = FALSE, $filters = array() ) |
10824 | 10806 | { |
@@ -10846,9 +10828,8 @@ discard block |
||
10846 | 10828 | * This is a simplified version of the deprecated R::dup() function. |
10847 | 10829 | * |
10848 | 10830 | * @param OODBBean $bean bean to be copied |
10849 | - * @param array $white white list filter with bean types to duplicate |
|
10850 | 10831 | * |
10851 | - * @return array |
|
10832 | + * @return OODBBean |
|
10852 | 10833 | */ |
10853 | 10834 | public static function duplicate( $bean, $filters = array() ) |
10854 | 10835 | { |
@@ -11926,7 +11907,7 @@ discard block |
||
11926 | 11907 | * |
11927 | 11908 | * @param string $typeName bean type name |
11928 | 11909 | * |
11929 | - * @return array |
|
11910 | + * @return string[] |
|
11930 | 11911 | */ |
11931 | 11912 | private function getListNames( $typeName ) |
11932 | 11913 | { |
@@ -62,10 +62,16 @@ |
||
62 | 62 | } |
63 | 63 | } |
64 | 64 | |
65 | + /** |
|
66 | + * @param string $query |
|
67 | + */ |
|
65 | 68 | public function consulta($query) { |
66 | 69 | $this->stmt = $this->dbh->prepare($query); |
67 | 70 | } |
68 | 71 | |
72 | + /** |
|
73 | + * @param string $param |
|
74 | + */ |
|
69 | 75 | public function enlace($param, $value, $type = null) {//bind |
70 | 76 | if (is_null($type)) { |
71 | 77 | switch (true) { |
@@ -341,6 +341,10 @@ |
||
341 | 341 | return $file; |
342 | 342 | } |
343 | 343 | |
344 | + /** |
|
345 | + * @param string $class |
|
346 | + * @param string $ext |
|
347 | + */ |
|
344 | 348 | private function findFileWithExtension($class, $ext) |
345 | 349 | { |
346 | 350 | // PSR-4 lookup |
@@ -1098,6 +1098,9 @@ discard block |
||
1098 | 1098 | $this->defaultCommand = $commandName; |
1099 | 1099 | } |
1100 | 1100 | |
1101 | + /** |
|
1102 | + * @param string $string |
|
1103 | + */ |
|
1101 | 1104 | private function stringWidth($string) |
1102 | 1105 | { |
1103 | 1106 | if (!function_exists('mb_strwidth')) { |
@@ -1111,6 +1114,9 @@ discard block |
||
1111 | 1114 | return mb_strwidth($string, $encoding); |
1112 | 1115 | } |
1113 | 1116 | |
1117 | + /** |
|
1118 | + * @param integer $width |
|
1119 | + */ |
|
1114 | 1120 | private function splitStringByWidth($string, $width) |
1115 | 1121 | { |
1116 | 1122 | // str_split is not suitable for multi-byte characters, we should use preg_split to get char array properly. |