Changeset 26946 for trunk/admin
- Timestamp:
- Jan 24, 2014, 1:50:48 PM (10 years ago)
- Location:
- trunk/admin/include
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/include/functions_history.inc.php
r26461 r26946 22 22 // +-----------------------------------------------------------------------+ 23 23 24 /** 25 * @package functions\admin\history 26 */ 27 28 24 29 include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php'); 25 30 31 /** 32 * Init tabsheet for history pages 33 * @ignore 34 */ 26 35 function history_tabsheet() 27 36 { … … 35 44 } 36 45 46 /** 47 * Callback used to sort history entries 48 */ 37 49 function history_compare($a, $b) 38 50 { … … 40 52 } 41 53 54 /** 55 * Perform history search. 56 * 57 * @param array $data - used in trigger_change 58 * @param array $search 59 * @param string[] $types 60 * @param array 61 */ 42 62 function get_history($data, $search, $types) 43 63 { -
trunk/admin/include/functions_install.inc.php
r26461 r26946 23 23 24 24 /** 25 * loads an sql file and executes all queries 26 * 25 * @package functions\admin\install 26 */ 27 28 29 /** 30 * Loads a SQL file and executes all queries. 27 31 * Before executing a query, $replaced is... replaced by $replacing. This is 28 32 * useful when the SQL file contains generic words. Drop table queries are 29 33 * not executed. 30 34 * 31 * @param string filepath 32 * @param string replaced 33 * @param string replacing 34 * @return void 35 * @param string $filepath 36 * @param string $replaced 37 * @param string $replacing 35 38 */ 36 39 function execute_sqlfile($filepath, $replaced, $replacing, $dblayer) … … 71 74 /** 72 75 * Automatically activate all core themes in the "themes" directory. 73 *74 * @return void75 76 */ 76 77 function activate_core_themes() … … 87 88 } 88 89 90 /** 91 * Connect to database during installation. Uses $_POST. 92 * 93 * @param array &$infos - populated with infos 94 * @param array &$errors - populated with errors 95 */ 89 96 function install_db_connect(&$infos, &$errors) 90 97 { … … 100 107 } 101 108 } 109 102 110 ?> -
trunk/admin/include/functions_metadata.php
r26461 r26946 22 22 // +-----------------------------------------------------------------------+ 23 23 24 /** 25 * @package functions\admin\metadata 26 */ 27 28 24 29 include_once(PHPWG_ROOT_PATH.'/include/functions_metadata.inc.php'); 25 30 26 31 32 /** 33 * Returns IPTC metadata to sync from a file, depending on IPTC mapping. 34 * @toto : clean code (factorize foreach) 35 * 36 * @param string $file 37 * @return array 38 */ 27 39 function get_sync_iptc_data($file) 28 40 { … … 81 93 } 82 94 95 /** 96 * Returns EXIF metadata to sync from a file, depending on EXIF mapping. 97 * 98 * @param string $file 99 * @return array 100 */ 83 101 function get_sync_exif_data($file) 84 102 { … … 111 129 } 112 130 113 131 /** 132 * Get all potential file metadata fields, including IPTC and EXIF. 133 * 134 * @return string[] 135 */ 114 136 function get_sync_metadata_attributes() 115 137 { … … 140 162 } 141 163 164 /** 165 * Get all metadata of a file. 166 * 167 * @param array $infos - (path[, representative_ext]) 168 * @return array - includes data provided in $infos 169 */ 142 170 function get_sync_metadata($infos) 143 171 { … … 179 207 } 180 208 181 209 /** 210 * Sync all metadata of a list of images. 211 * Metadata are fetched from original files and saved in database. 212 * 213 * @param int[] $ids 214 */ 182 215 function sync_metadata($ids) 183 216 { … … 256 289 257 290 /** 258 * returns an array associating element id (images.id) with its complete291 * Returns an array associating element id (images.id) with its complete 259 292 * path in the filesystem 260 293 * 261 * @param int id_uppercat262 * @param int site_id263 * @param boolean recursive ?264 * @param boolean only newly added files ?294 * @param int $category_id 295 * @param int $site_id 296 * @param boolean $recursive 297 * @param boolean $only_new 265 298 * @return array 266 299 */ … … 318 351 return hash_from_query($query, 'id'); 319 352 } 353 320 354 ?>
Note: See TracChangeset
for help on using the changeset viewer.