Ignore:
Timestamp:
2013/02/18 19:09:54 (13 years ago)
Author:
shutta
Message:

#2043 (typo修正・ソース整形・ソースコメントの改善 for 2.12.4)
Zend Framework PHP 標準コーディング規約のコーディングスタイルへ準拠。
classおよびfunctionの開始波括弧「{」のスタイルを修正。

Location:
branches/version-2_12-dev/data/class/pages/admin/design
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/pages/admin/design/LC_Page_Admin_Design.php

    r22206 r22567  
    3232 * @version $Id$ 
    3333 */ 
    34 class LC_Page_Admin_Design extends LC_Page_Admin_Ex { 
     34class LC_Page_Admin_Design extends LC_Page_Admin_Ex  
     35{ 
    3536 
    3637    // }}} 
     
    4243     * @return void 
    4344     */ 
    44     function init() { 
     45    function init() 
     46    { 
    4547        parent::init(); 
    4648        $this->tpl_mainpage = 'design/index.tpl'; 
     
    5961     * @return void 
    6062     */ 
    61     function process() { 
     63    function process() 
     64    { 
    6265        $this->action(); 
    6366        $this->sendResponse(); 
     
    6972     * @return void 
    7073     */ 
    71     function action() { 
     74    function action() 
     75    { 
    7276 
    7377        $objLayout = new SC_Helper_PageLayout_Ex(); 
     
    148152     * @return void 
    149153     */ 
    150     function destroy() { 
     154    function destroy() 
     155    { 
    151156        parent::destroy(); 
    152157    } 
     
    159164     * @return void 
    160165     */ 
    161     function lfInitParam(&$objFormParam, $bloc_cnt = 0) { 
     166    function lfInitParam(&$objFormParam, $bloc_cnt = 0) 
     167    { 
    162168        $objFormParam->addParam('ページID', 'page_id', INT_LEN, 'n', array('MAX_LENGTH_CHECK', 'NUM_CHECK')); 
    163169        $objFormParam->addParam('端末種別ID', 'device_type_id', INT_LEN, 'n', array('MAX_LENGTH_CHECK', 'NUM_CHECK')); 
     
    181187     * @return array レイアウト情報の配列 
    182188     */ 
    183     function getLayout($device_type_id, $page_id, &$objLayout) { 
     189    function getLayout($device_type_id, $page_id, &$objLayout) 
     190    { 
    184191        $arrResults = array(); 
    185192        $i = 0; 
     
    212219     * @return void 
    213220     */ 
    214     function copyBloc(&$arrDest, $arrFrom, $cnt) { 
     221    function copyBloc(&$arrDest, $arrFrom, $cnt) 
     222    { 
    215223        $arrDest[$cnt]['target_id'] = $this->arrTarget[$arrFrom['target_id']]; 
    216224        $arrDest[$cnt]['bloc_id'] = $arrFrom['bloc_id']; 
     
    227235     * @return bool 存在する場合 true 
    228236     */ 
    229     function existsBloc($arrBloc, $arrToBlocs) { 
     237    function existsBloc($arrBloc, $arrToBlocs) 
     238    { 
    230239        foreach ($arrToBlocs as $arrToBloc) { 
    231240            if ($arrBloc['bloc_id'] === $arrToBloc['bloc_id']) { 
     
    243252     * @return string プレビューを行う tpl_mainpage ファイル名 
    244253     */ 
    245     function savePreviewData($page_id, &$objLayout) { 
     254    function savePreviewData($page_id, &$objLayout) 
     255    { 
    246256        $arrPageData = $objLayout->getPageProperties(DEVICE_TYPE_PC, $page_id); 
    247257        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
     
    258268     * @return void 
    259269     */ 
    260     function placingBlocs(&$objFormParam, $is_preview = false) { 
     270    function placingBlocs(&$objFormParam, $is_preview = false) 
     271    { 
    261272        $page_id = $is_preview ? 0 : $objFormParam->getValue('page_id'); 
    262273        $device_type_id = $objFormParam->getValue('device_type_id'); 
  • branches/version-2_12-dev/data/class/pages/admin/design/LC_Page_Admin_Design_Bloc.php

    r22206 r22567  
    3232 * @version $Id$ 
    3333 */ 
    34 class LC_Page_Admin_Design_Bloc extends LC_Page_Admin_Ex { 
     34class LC_Page_Admin_Design_Bloc extends LC_Page_Admin_Ex  
     35{ 
    3536 
    3637    // }}} 
     
    4243     * @return void 
    4344     */ 
    44     function init() { 
     45    function init() 
     46    { 
    4547        parent::init(); 
    4648        $this->tpl_mainpage = 'design/bloc.tpl'; 
     
    6062     * @return void 
    6163     */ 
    62     function process() { 
     64    function process() 
     65    { 
    6366        $this->action(); 
    6467        $this->sendResponse(); 
     
    7073     * @return void 
    7174     */ 
    72     function action() { 
     75    function action() 
     76    { 
    7377 
    7478        $objFormParam = new SC_FormParam_Ex(); 
     
    150154     * @return void 
    151155     */ 
    152     function destroy() { 
     156    function destroy() 
     157    { 
    153158        parent::destroy(); 
    154159    } 
     
    160165     * @return void 
    161166     */ 
    162     function lfInitParam(&$objFormParam) { 
     167    function lfInitParam(&$objFormParam) 
     168    { 
    163169        $objFormParam->addParam('ブロックID', 'bloc_id', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK')); 
    164170        $objFormParam->addParam('端末種別ID', 'device_type_id', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK')); 
     
    176182     * @return array ブロック情報の配列 
    177183     */ 
    178     function getBlocTemplate($device_type_id, $bloc_id, &$objLayout) { 
     184    function getBlocTemplate($device_type_id, $bloc_id, &$objLayout) 
     185    { 
    179186        $arrBloc = $objLayout->getBlocs($device_type_id, 'bloc_id = ?', array($bloc_id)); 
    180187        if (SC_Utils_Ex::isAbsoluteRealPath($arrBloc[0]['tpl_path'])) { 
     
    200207     *                         失敗した場合 false 
    201208     */ 
    202     function doRegister(&$objFormParam, &$objLayout) { 
     209    function doRegister(&$objFormParam, &$objLayout) 
     210    { 
    203211        $arrParams = $objFormParam->getHashArray(); 
    204212 
     
    257265     * @return boolean 登録が成功した場合 true; 失敗した場合 false 
    258266     */ 
    259     function doDelete(&$objFormParam, &$objLayout) { 
     267    function doDelete(&$objFormParam, &$objLayout) 
     268    { 
    260269        $arrParams = $objFormParam->getHashArray(); 
    261270        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
     
    299308     * @return array エラーメッセージの配列 
    300309     */ 
    301     function lfCheckError(&$objFormParam, &$arrErr, &$objLayout) { 
     310    function lfCheckError(&$objFormParam, &$arrErr, &$objLayout) 
     311    { 
    302312        $arrParams = $objFormParam->getHashArray(); 
    303313        $objErr = new SC_CheckError_Ex($arrParams); 
  • branches/version-2_12-dev/data/class/pages/admin/design/LC_Page_Admin_Design_CSS.php

    r22206 r22567  
    3232 * @version $Id$ 
    3333 */ 
    34 class LC_Page_Admin_Design_CSS extends LC_Page_Admin_Ex { 
     34class LC_Page_Admin_Design_CSS extends LC_Page_Admin_Ex  
     35{ 
    3536 
    3637    // }}} 
     
    4243     * @return void 
    4344     */ 
    44     function init() { 
     45    function init() 
     46    { 
    4547        parent::init(); 
    4648        $this->tpl_mainpage = 'design/css.tpl'; 
     
    5961     * @return void 
    6062     */ 
    61     function process() { 
     63    function process() 
     64    { 
    6265        $this->action(); 
    6366        $this->sendResponse(); 
     
    6972     * @return void 
    7073     */ 
    71     function action() { 
     74    function action() 
     75    { 
    7276 
    7377        $objLayout = new SC_Helper_PageLayout_Ex(); 
     
    142146     * @return void 
    143147     */ 
    144     function destroy() { 
     148    function destroy() 
     149    { 
    145150        parent::destroy(); 
    146151    } 
     
    152157     * @return void 
    153158     */ 
    154     function lfInitParam(&$objFormParam) { 
     159    function lfInitParam(&$objFormParam) 
     160    { 
    155161        $objFormParam->addParam('端末種別ID', 'device_type_id', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK')); 
    156162        $objFormParam->addParam('CSSファイル名', 'css_name', STEXT_LEN, 'a', array('MAX_LENGTH_CHECK')); 
     
    172178     * @return boolean 登録が成功した場合 true; 失敗した場合 false 
    173179     */ 
    174     function doRegister($css_dir, $css_name, $old_css_name, $css_path, $css_data) { 
     180    function doRegister($css_dir, $css_name, $old_css_name, $css_path, $css_data) 
     181    { 
    175182        $objFileManager = new SC_Helper_FileManager_Ex(); 
    176183 
     
    196203     * @return boolean 削除が成功した場合 true; 失敗した場合 false 
    197204     */ 
    198     function doDelete($css_path) { 
     205    function doDelete($css_path) 
     206    { 
    199207        if (!unlink($css_path)) { 
    200208            $this->arrErr['err'] = '※ CSSの削除に失敗しました<br />'; 
     
    210218     * @return array ファイルリスト 
    211219     */ 
    212     function getCSSList($css_dir) { 
     220    function getCSSList($css_dir) 
     221    { 
    213222        $objFileManager = new SC_Helper_FileManager_Ex(); 
    214223 
     
    231240     * @return array エラーメッセージの配列 
    232241     */ 
    233     function lfCheckError(&$objFormParam, &$arrErr) { 
     242    function lfCheckError(&$objFormParam, &$arrErr) 
     243    { 
    234244        $arrParams = $objFormParam->getHashArray(); 
    235245        $objErr = new SC_CheckError_Ex($arrParams); 
     
    266276     * @return string CSSディレクトリ 
    267277     */ 
    268     function getCSSDir($device_type_id) { 
     278    function getCSSDir($device_type_id) 
     279    { 
    269280        return SC_Helper_PageLayout_Ex::getTemplatePath($device_type_id, true) . 'css/'; 
    270281    } 
     
    275286     * @return boolean  
    276287     */ 
    277     function checkPath($str) { 
     288    function checkPath($str) 
     289    { 
    278290        // 含む場合はfalse 
    279291        if (preg_match('|\./|', $str)) { 
  • branches/version-2_12-dev/data/class/pages/admin/design/LC_Page_Admin_Design_Header.php

    r22206 r22567  
    3232 * @version $Id$ 
    3333 */ 
    34 class LC_Page_Admin_Design_Header extends LC_Page_Admin_Ex { 
     34class LC_Page_Admin_Design_Header extends LC_Page_Admin_Ex  
     35{ 
    3536 
    3637    // }}} 
     
    4243     * @return void 
    4344     */ 
    44     function init() { 
     45    function init() 
     46    { 
    4547        parent::init(); 
    4648        $this->tpl_mainpage = 'design/header.tpl'; 
     
    6062     * @return void 
    6163     */ 
    62     function process() { 
     64    function process() 
     65    { 
    6366        $this->action(); 
    6467        $this->sendResponse(); 
     
    7073     * @return void 
    7174     */ 
    72     function action() { 
     75    function action() 
     76    { 
    7377 
    7478        $objFormParam = new SC_FormParam_Ex(); 
     
    121125     * @return void 
    122126     */ 
    123     function destroy() { 
     127    function destroy() 
     128    { 
    124129        parent::destroy(); 
    125130    } 
     
    131136     * @return void 
    132137     */ 
    133     function lfInitParam(&$objFormParam) { 
     138    function lfInitParam(&$objFormParam) 
     139    { 
    134140        $objFormParam->addParam('端末種別ID', 'device_type_id', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK')); 
    135141        $objFormParam->addParam('division', 'division', STEXT_LEN, 'a', array('MAX_LENGTH_CHECK')); 
     
    144150     * @return array エラーメッセージの配列 
    145151     */ 
    146     function lfCheckError(&$objFormParam, &$arrErr) { 
     152    function lfCheckError(&$objFormParam, &$arrErr) 
     153    { 
    147154        $arrParams = $objFormParam->getHashArray(); 
    148155        $objErr = new SC_CheckError_Ex($arrParams); 
     
    160167     * @return integer|boolean 登録が成功した場合 true; 失敗した場合 false 
    161168     */ 
    162     function doRegister(&$objFormParam) { 
     169    function doRegister(&$objFormParam) 
     170    { 
    163171        $division = $objFormParam->getValue('division'); 
    164172        $contents = $objFormParam->getValue($division); 
     
    179187     * @return string|boolean 成功した場合, テンプレートのパス; 失敗した場合 false 
    180188     */ 
    181     function getTemplatePath($device_type_id, $division) { 
     189    function getTemplatePath($device_type_id, $division) 
     190    { 
    182191        $tpl_path = SC_Helper_PageLayout_Ex::getTemplatePath($device_type_id) . '/' . $division . '.tpl'; 
    183192        if (file_exists($tpl_path)) { 
  • branches/version-2_12-dev/data/class/pages/admin/design/LC_Page_Admin_Design_MainEdit.php

    r22206 r22567  
    3232 * @version $Id$ 
    3333 */ 
    34 class LC_Page_Admin_Design_MainEdit extends LC_Page_Admin_Ex { 
     34class LC_Page_Admin_Design_MainEdit extends LC_Page_Admin_Ex  
     35{ 
    3536 
    3637    // }}} 
     
    4243     * @return void 
    4344     */ 
    44     function init() { 
     45    function init() 
     46    { 
    4547        parent::init(); 
    4648        $this->tpl_mainpage = 'design/main_edit.tpl'; 
     
    5961     * @return void 
    6062     */ 
    61     function process() { 
     63    function process() 
     64    { 
    6265        $this->action(); 
    6366        $this->sendResponse(); 
     
    6972     * @return void 
    7073     */ 
    71     function action() { 
     74    function action() 
     75    { 
    7276 
    7377        $objLayout = new SC_Helper_PageLayout_Ex(); 
     
    141145     * @return void 
    142146     */ 
    143     function destroy() { 
     147    function destroy() 
     148    { 
    144149        parent::destroy(); 
    145150    } 
     
    153158     * @return void 
    154159     */ 
    155     function lfInitParam(&$objFormParam) { 
     160    function lfInitParam(&$objFormParam) 
     161    { 
    156162        $objFormParam->addParam('ページID', 'page_id', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK')); 
    157163        $objFormParam->addParam('端末種別ID', 'device_type_id', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK')); 
     
    172178     * @return array ページデータの配列 
    173179     */ 
    174     function getTplMainpage($device_type_id, $page_id, &$objLayout) { 
     180    function getTplMainpage($device_type_id, $page_id, &$objLayout) 
     181    { 
    175182        $arrPageData = $objLayout->getPageProperties($device_type_id, $page_id); 
    176183 
     
    196203     *                         失敗した場合 false 
    197204     */ 
    198     function doRegister(&$objFormParam, &$objLayout) { 
     205    function doRegister(&$objFormParam, &$objLayout) 
     206    { 
    199207        $filename = $objFormParam->getValue('filename'); 
    200208        $arrParams['device_type_id'] = $objFormParam->getValue('device_type_id'); 
     
    251259     * @return integer ページID 
    252260     */ 
    253     function registerPage($arrParams, &$objLayout) { 
     261    function registerPage($arrParams, &$objLayout) 
     262    { 
    254263        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    255264 
     
    295304     * @return array エラーメッセージの配列 
    296305     */ 
    297     function lfCheckError(&$objFormParam, &$arrErr) { 
     306    function lfCheckError(&$objFormParam, &$arrErr) 
     307    { 
    298308        $arrParams = $objFormParam->getHashArray(); 
    299309        $objErr = new SC_CheckError_Ex($arrParams); 
     
    344354     * @return boolean 作成に成功した場合 true 
    345355     */ 
    346     function createPHPFile($filename) { 
     356    function createPHPFile($filename) 
     357    { 
    347358        $path = USER_REALDIR . $filename . '.php'; 
    348359 
  • branches/version-2_12-dev/data/class/pages/admin/design/LC_Page_Admin_Design_Template.php

    r22206 r22567  
    3131 * @version $Id$ 
    3232 */ 
    33 class LC_Page_Admin_Design_Template extends LC_Page_Admin_Ex { 
     33class LC_Page_Admin_Design_Template extends LC_Page_Admin_Ex  
     34{ 
    3435 
    3536    // }}} 
     
    4142     * @return void 
    4243     */ 
    43     function init() { 
     44    function init() 
     45    { 
    4446        parent::init(); 
    4547        $this->tpl_mainpage = 'design/template.tpl'; 
     
    6062     * @return void 
    6163     */ 
    62     function process() { 
     64    function process() 
     65    { 
    6366        $this->action(); 
    6467        $this->sendResponse(); 
     
    7073     * @return void 
    7174     */ 
    72     function action() { 
     75    function action() 
     76    { 
    7377 
    7478        $objFormParam = new SC_FormParam_Ex(); 
     
    138142     * @return void 
    139143     */ 
    140     function destroy() { 
     144    function destroy() 
     145    { 
    141146        parent::destroy(); 
    142147    } 
     
    148153     * @return void 
    149154     */ 
    150     function lfInitParam(&$objFormParam) { 
     155    function lfInitParam(&$objFormParam) 
     156    { 
    151157        $objFormParam->addParam('端末種別ID', 'device_type_id', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK')); 
    152158        $objFormParam->addParam('template_code', 'template_code', STEXT_LEN, 'a', array('EXIST_CHECK', 'SPTAB_CHECK','MAX_LENGTH_CHECK', 'ALNUM_CHECK')); 
     
    162168     * @return void 
    163169     */ 
    164     function doUpdateMasterData($template_code, $device_type_id) { 
     170    function doUpdateMasterData($template_code, $device_type_id) 
     171    { 
    165172        $masterData = new SC_DB_MasterData_Ex(); 
    166173 
     
    197204     * @return void 
    198205     */ 
    199     function updateBloc($filepath) { 
     206    function updateBloc($filepath) 
     207    { 
    200208        $sql = file_get_contents($filepath); 
    201209        if ($sql !== false) { 
     
    219227     * @return boolean 成功した場合 true; 失敗した場合 false 
    220228     */ 
    221     function doDelete($template_code, $device_type_id) { 
     229    function doDelete($template_code, $device_type_id) 
     230    { 
    222231        if ($template_code == $this->getTemplateName($device_type_id) 
    223232                || $template_code == $this->getTemplateName($device_type_id, true)) { 
     
    267276     * @return boolean 成功した場合 true; 失敗した場合 false 
    268277     */ 
    269     function doRegister($template_code, $device_type_id) { 
     278    function doRegister($template_code, $device_type_id) 
     279    { 
    270280 
    271281        $tpl_dir = USER_TEMPLATE_REALDIR . $template_code . '/'; 
     
    297307     * @return boolean 成功した場合 true; 失敗した場合 false 
    298308     */ 
    299     function doDownload($template_code) { 
     309    function doDownload($template_code) 
     310    { 
    300311        $from_dir = USER_TEMPLATE_REALDIR . $template_code . '/'; 
    301312        $to_dir = SMARTY_TEMPLATES_REALDIR . $template_code . '/_packages/'; 
     
    318329     * @return array テンプレート情報の配列 
    319330     */ 
    320     function getAllTemplates($device_type_id) { 
     331    function getAllTemplates($device_type_id) 
     332    { 
    321333        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    322334        return $objQuery->select('*', 'dtb_templates', 'device_type_id = ?', array($device_type_id)); 
     
    330342     * @return string テンプレート名 
    331343     */ 
    332     function getTemplateName($device_type_id, $isDefault = false) { 
     344    function getTemplateName($device_type_id, $isDefault = false) 
     345    { 
    333346        switch ($device_type_id) { 
    334347            case DEVICE_TYPE_MOBILE: 
  • branches/version-2_12-dev/data/class/pages/admin/design/LC_Page_Admin_Design_UpDown.php

    r22206 r22567  
    3232 * @version $Id$ 
    3333 */ 
    34 class LC_Page_Admin_Design_UpDown extends LC_Page_Admin_Ex { 
     34class LC_Page_Admin_Design_UpDown extends LC_Page_Admin_Ex  
     35{ 
    3536 
    3637    // }}} 
     
    4243     * @return void 
    4344     */ 
    44     function init() { 
     45    function init() 
     46    { 
    4547        parent::init(); 
    4648        $this->tpl_mainpage = 'design/up_down.tpl'; 
     
    6163     * @return void 
    6264     */ 
    63     function process() { 
     65    function process() 
     66    { 
    6467        $this->action(); 
    6568        $this->sendResponse(); 
     
    7376     * @return void 
    7477     */ 
    75     function action() { 
     78    function action() 
     79    { 
    7680 
    7781        $objFormParam = new SC_FormParam_Ex(); 
     
    110114     * @return void 
    111115     */ 
    112     function destroy() { 
     116    function destroy() 
     117    { 
    113118        parent::destroy(); 
    114119    } 
     
    120125     * @return object SC_UploadFileのインスタンス 
    121126     */ 
    122     function lfInitUploadFile($objForm) { 
     127    function lfInitUploadFile($objForm) 
     128    { 
    123129        $pkg_dir = SMARTY_TEMPLATES_REALDIR . $objForm->getValue('template_code'); 
    124130        $objUpFile = new SC_UploadFile_Ex(TEMPLATE_TEMP_REALDIR, $pkg_dir); 
     
    133139     * @return void 
    134140     */ 
    135     function lfInitParam(&$objFormParam) { 
     141    function lfInitParam(&$objFormParam) 
     142    { 
    136143        $objFormParam->addParam('テンプレートコード', 'template_code', STEXT_LEN, 'a', array('EXIST_CHECK', 'SPTAB_CHECK','MAX_LENGTH_CHECK', 'ALNUM_CHECK')); 
    137144        $objFormParam->addParam('テンプレート名', 'template_name', STEXT_LEN, 'KVa', array('EXIST_CHECK', 'SPTAB_CHECK','MAX_LENGTH_CHECK')); 
     
    146153     * @return array エラー情報を格納した連想配列, エラーが無ければ(多分)nullを返す 
    147154     */ 
    148     function lfCheckError(&$objFormParam, &$objUpFile) { 
     155    function lfCheckError(&$objFormParam, &$objUpFile) 
     156    { 
    149157        $arrErr = $objFormParam->checkError(); 
    150158        $template_code = $objFormParam->getValue('template_code'); 
     
    197205     * @return boolean 成功した場合 true; 失敗した場合 false 
    198206     */ 
    199     function doUpload($objFormParam, $objUpFile) { 
     207    function doUpload($objFormParam, $objUpFile) 
     208    { 
    200209        $template_code = $objFormParam->getValue('template_code'); 
    201210        $template_name = $objFormParam->getValue('template_name'); 
Note: See TracChangeset for help on using the changeset viewer.