Changeset 22567 for branches/version-2_12-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents_FileManager.php
- Timestamp:
- 2013/02/18 19:09:54 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents_FileManager.php
r22206 r22567 32 32 * @version $Id$ 33 33 */ 34 class LC_Page_Admin_Contents_FileManager extends LC_Page_Admin_Ex { 34 class LC_Page_Admin_Contents_FileManager extends LC_Page_Admin_Ex 35 { 35 36 36 37 // }}} … … 42 43 * @return void 43 44 */ 44 function init() { 45 function init() 46 { 45 47 parent::init(); 46 48 $this->tpl_mainpage = 'contents/file_manager.tpl'; … … 57 59 * @return void 58 60 */ 59 function process() { 61 function process() 62 { 60 63 $this->action(); 61 64 $this->sendResponse(); … … 67 70 * @return void 68 71 */ 69 function action() { 72 function action() 73 { 70 74 71 75 // フォーム操作クラス … … 205 209 * @return void 206 210 */ 207 function destroy() { 211 function destroy() 212 { 208 213 parent::destroy(); 209 214 } … … 215 220 * @return void 216 221 */ 217 function lfInitParam(&$objFormParam) { 222 function lfInitParam(&$objFormParam) 223 { 218 224 // 共通定義 219 225 $this->lfInitParamCommon($objFormParam); … … 226 232 * @return void 227 233 */ 228 function lfInitParamModeMove(&$objFormParam) { 234 function lfInitParamModeMove(&$objFormParam) 235 { 229 236 // 共通定義 230 237 $this->lfInitParamCommon($objFormParam); … … 238 245 * @return void 239 246 */ 240 function lfInitParamModeView(&$objFormParam) { 247 function lfInitParamModeView(&$objFormParam) 248 { 241 249 // 共通定義 242 250 $this->lfInitParamCommon($objFormParam); … … 250 258 * @return void 251 259 */ 252 function lfInitParamModeCreate(&$objFormParam) { 260 function lfInitParamModeCreate(&$objFormParam) 261 { 253 262 // 共通定義 254 263 $this->lfInitParamCommon($objFormParam); … … 263 272 * @return void 264 273 */ 265 function lfInitParamCommon(&$objFormParam) { 274 function lfInitParamCommon(&$objFormParam) 275 { 266 276 $objFormParam->addParam('ルートディレクトリ', 'top_dir', MTEXT_LEN, 'a', array()); 267 277 $objFormParam->addParam('現在の階層ディレクトリ', 'now_dir', MTEXT_LEN, 'a', array()); … … 277 287 * @return void 278 288 */ 279 function lfInitFile(&$objUpFile) { 289 function lfInitFile(&$objUpFile) 290 { 280 291 $objUpFile->addFile('ファイル', 'upload_file', array(), FILE_SIZE, true, 0, 0, false); 281 292 } … … 287 298 * @return array $setParam テンプレートに渡す値 288 299 */ 289 function createSetParam($arrVal) { 300 function createSetParam($arrVal) 301 { 290 302 $setParam = $arrVal; 291 303 // Windowsの場合は, ディレクトリの区切り文字を\から/に変換する … … 305 317 * @return void 306 318 */ 307 function setDispParam($key, $val) { 319 function setDispParam($key, $val) 320 { 308 321 $this->$key = $val; 309 322 } … … 316 329 * @return boolean ディレクトリ作成できたかどうか 317 330 */ 318 function tryCreateDir($objFileManager, $objFormParam) { 331 function tryCreateDir($objFileManager, $objFormParam) 332 { 319 333 $create_dir_flg = false; 320 334 $create_dir = rtrim($objFormParam->getValue('now_dir'), '/'); … … 332 346 * @return boolean ファイル表示するかどうか 333 347 */ 334 function tryView(&$objFormParam) { 348 function tryView(&$objFormParam) 349 { 335 350 $view_flg = false; 336 351 $now_dir = $this->lfCheckSelectDir($objFormParam, dirname($objFormParam->getValue('select_file'))); … … 348 363 * @return void 349 364 */ 350 function setParentDir($objFormParam) { 365 function setParentDir($objFormParam) 366 { 351 367 $parent_dir = $this->lfGetParentDir($objFormParam->getValue('now_dir')); 352 368 $this->setDispParam('tpl_parent_dir', $parent_dir); … … 359 375 * @return void 360 376 */ 361 function setDispPath($objFormParam) { 377 function setDispPath($objFormParam) 378 { 362 379 $tpl_now_dir = ''; 363 380 // Windows 環境で DIRECTORY_SEPARATOR が JavaScript に渡るとエスケープ文字と勘違いするので置換 … … 375 392 * @return void 376 393 */ 377 function setDispError($key, $value) { 394 function setDispError($key, $value) 395 { 378 396 // 既にエラーがある場合は、処理しない 379 397 if (SC_Utils_Ex::isBlank($this->arrErr[$key])) { … … 388 406 * @return void 389 407 */ 390 function setTplOnLoad($tpl_onload) { 408 function setTplOnLoad($tpl_onload) 409 { 391 410 $this->tpl_onload .= $tpl_onload; 392 411 } … … 399 418 * @return string $select_dir 選択ディレクトリ 400 419 */ 401 function lfCheckSelectDir($objFormParam, $dir) { 420 function lfCheckSelectDir($objFormParam, $dir) 421 { 402 422 $select_dir = ''; 403 423 $top_dir = $objFormParam->getValue('top_dir'); … … 424 444 * @return string $parent_dir 親ディレクトリ 425 445 */ 426 function lfGetParentDir($dir) { 446 function lfGetParentDir($dir) 447 { 427 448 $parent_dir = ''; 428 449 $dir = rtrim($dir, '/'); … … 443 464 * @return void 444 465 */ 445 function setDispTree($objFileManager, $objFormParam) { 466 function setDispTree($objFileManager, $objFormParam) 467 { 446 468 $tpl_onload = ''; 447 469 // ツリーを表示する divタグid, ツリー配列変数名, 現在ディレクトリ, 選択ツリーhidden名, ツリー状態hidden名, mode hidden名 … … 475 497 * @return void 476 498 */ 477 function setIsTopDir($objFormParam) { 499 function setIsTopDir($objFormParam) 500 { 478 501 // トップディレクトリか調査 479 502 $is_top_dir = false;
Note: See TracChangeset
for help on using the changeset viewer.