- Timestamp:
- 2013/02/18 19:09:54 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/helper/SC_Helper_PageLayout.php
r22405 r22567 29 29 * @version $Id:SC_Helper_PageLayout.php 15532 2007-08-31 14:39:46Z nanasess $ 30 30 */ 31 class SC_Helper_PageLayout { 31 class SC_Helper_PageLayout 32 { 32 33 33 34 // }}} … … 47 48 * @return void 48 49 */ 49 function sfGetPageLayout(&$objPage, $preview = false, $url = '', $device_type_id = DEVICE_TYPE_PC) { 50 function sfGetPageLayout(&$objPage, $preview = false, $url = '', $device_type_id = DEVICE_TYPE_PC) 51 { 50 52 51 53 // URLを元にページ情報を取得 … … 109 111 * @return array ページ属性の配列 110 112 */ 111 function getPageProperties($device_type_id = DEVICE_TYPE_PC, $page_id = null, $where = '', $arrParams = array()) { 113 function getPageProperties($device_type_id = DEVICE_TYPE_PC, $page_id = null, $where = '', $arrParams = array()) 114 { 112 115 $objQuery =& SC_Query_Ex::getSingletonInstance(); 113 116 $where = 'device_type_id = ? ' . (SC_Utils_Ex::isBlank($where) ? $where : 'AND ' . $where); … … 133 136 * @return array ブロック情報の配列 134 137 */ 135 function getBlocs($device_type_id = DEVICE_TYPE_PC, $where = '', $arrParams = array(), $has_realpath = true) { 138 function getBlocs($device_type_id = DEVICE_TYPE_PC, $where = '', $arrParams = array(), $has_realpath = true) 139 { 136 140 $objQuery =& SC_Query_Ex::getSingletonInstance(); 137 141 $where = 'device_type_id = ? ' . (SC_Utils_Ex::isBlank($where) ? $where : 'AND ' . $where); … … 154 158 * @return array 配置情報を含めたブロックの配列 155 159 */ 156 function getBlocPositions($device_type_id, $page_id, $has_realpath = true) { 160 function getBlocPositions($device_type_id, $page_id, $has_realpath = true) 161 { 157 162 $objQuery =& SC_Query_Ex::getSingletonInstance(); 158 163 $table = <<< __EOF__ … … 193 198 * @return integer 削除数 194 199 */ 195 function lfDelPageData($page_id, $device_type_id = DEVICE_TYPE_PC) { 200 function lfDelPageData($page_id, $device_type_id = DEVICE_TYPE_PC) 201 { 196 202 $objQuery =& SC_Query_Ex::getSingletonInstance(); 197 203 // page_id が空でない場合にはdeleteを実行 … … 215 221 * @return void // TODO boolean にするべき? 216 222 */ 217 function lfDelFile($filename, $device_type_id) { 223 function lfDelFile($filename, $device_type_id) 224 { 218 225 $objQuery =& SC_Query_Ex::getSingletonInstance(); 219 226 … … 247 254 * @return 編集可能ページの場合 true 248 255 */ 249 function isEditablePage($device_type_id, $page_id) { 256 function isEditablePage($device_type_id, $page_id) 257 { 250 258 if ($page_id == 0) { 251 259 return false; … … 266 274 * @return string テンプレートのパス 267 275 */ 268 function getTemplatePath($device_type_id = DEVICE_TYPE_PC, $isUser = false) { 276 function getTemplatePath($device_type_id = DEVICE_TYPE_PC, $isUser = false) 277 { 269 278 $templateName = ''; 270 279 switch ($device_type_id) { … … 303 312 * @return string 端末に応じた DocumentRoot から user_data までのパス 304 313 */ 305 function getUserDir($device_type_id = DEVICE_TYPE_PC, $hasPackage = false) { 314 function getUserDir($device_type_id = DEVICE_TYPE_PC, $hasPackage = false) 315 { 306 316 switch ($device_type_id) { 307 317 case DEVICE_TYPE_MOBILE: … … 335 345 * @return void 336 346 */ 337 function setBlocPathTo($device_type_id = DEVICE_TYPE_PC, &$arrBlocs = array()) { 347 function setBlocPathTo($device_type_id = DEVICE_TYPE_PC, &$arrBlocs = array()) 348 { 338 349 foreach ($arrBlocs as $key => $value) { 339 350 $arrBloc =& $arrBlocs[$key]; … … 351 362 * @return integer $col_num カラム数 352 363 */ 353 function getColumnNum($arrPageLayout) { 364 function getColumnNum($arrPageLayout) 365 { 354 366 // メインは確定 355 367 $col_num = 1;
Note: See TracChangeset
for help on using the changeset viewer.