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