Changeset 11954
- Timestamp:
- 2007/03/22 18:33:28 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/dev/data/lib/slib.php
r11893 r11954 195 195 196 196 return $ret; 197 } 198 199 /* 200 * ¥µ¥¤¥È´ÉÍý¾ðÊ󤫤éÃͤò¼èÆÀ¤¹¤ë¡£ 201 * ¥Ç¡¼¥¿¤¬Â¸ºß¤¹¤ë¾ì¹ç¡¢É¬¤º1°Ê¾å¤Î¿ôÃͤ¬ÀßÄꤵ¤ì¤Æ¤¤¤ë¡£ 202 * 0¤òÊÖ¤·¤¿¾ì¹ç¤Ï¡¢¸Æ¤Ó½Ð¤·¸µ¤ÇÂбþ¤¹¤ë¤³¤È¡£ 203 * 204 * @param $control_id ´ÉÍýID 205 * @param $dsn DataSource 206 * @return $control_flg ¥Õ¥é¥° 207 */ 208 function sfGetSiteControlFlg($control_id, $dsn = "") { 209 210 // ¥Ç¡¼¥¿¥½¡¼¥¹ 211 if($dsn == "") { 212 if(defined('DEFAULT_DSN')) { 213 $dsn = DEFAULT_DSN; 214 } else { 215 return; 216 } 217 } 218 219 // ¥¯¥¨¥êÀ¸À® 220 $target_column = "control_flg"; 221 $table_name = "dtb_site_control"; 222 $where = "control_id = ?"; 223 $arrval = array($control_id); 224 $control_flg = 0; 225 226 // ¥¯¥¨¥êȯ¹Ô 227 $objQuery = new SC_Query($dsn, true, true); 228 $arrSiteControl = $objQuery->select($target_column, $table_name, $where, $arrval); 229 230 // ¥Ç¡¼¥¿¤¬Â¸ºß¤¹¤ì¤Ð¥Õ¥é¥°¤ò¼èÆÀ¤¹¤ë 231 if (count($arrSiteControl) > 0) { 232 $control_flg = $arrSiteControl[0]["control_flg"]; 233 } 234 235 return $control_flg; 197 236 } 198 237
Note: See TracChangeset
for help on using the changeset viewer.