gluu
公開メンバ関数 | 全メンバ一覧
GluuOxd_Gluufolder_Helper_Data クラス
GluuOxd_Gluufolder_Helper_Data の継承関係図
Inheritance graph
GluuOxd_Gluufolder_Helper_Data 連携図
Collaboration graph

公開メンバ関数

 displayMessage ($message, $type)
 
 getConfig ($config, $id)
 

詳解

関数詳解

◆ displayMessage()

GluuOxd_Gluufolder_Helper_Data::displayMessage (   $message,
  $type 
)

displaying message

戻り値
string
49  {
50  Mage::getSingleton ( 'core/session' )->getMessages ( true );
51  if (strcasecmp ( $type, "SUCCESS" ) == 0)
52  Mage::getSingleton ( 'core/session' )->addSuccess ( $message );
53  else if (strcasecmp ( $type, "ERROR" ) == 0)
54  Mage::getSingleton ( 'core/session' )->addError ( $message );
55  else if (strcasecmp ( $type, "NOTICE" ) == 0)
56  Mage::getSingleton ( 'core/session' )->addNotice ( $message );
57  else
58  Mage::getSingleton ( 'core/session' )->addWarning ( $message );
59  }

◆ getConfig()

GluuOxd_Gluufolder_Helper_Data::getConfig (   $config,
  $id 
)

checking config and getting result

戻り値
array or string
65  {
66 
67  switch ($config) {
68  case 'loginTheme' :
69  $result = Mage::getStoreConfig ( 'GluuOxd/Openid/loginTheme' );
70  break;
71  case 'loginCustomTheme' :
72  $result = Mage::getStoreConfig ( 'GluuOxd/Openid/loginCustomTheme' );
73  break;
74  case 'iconSpace' :
75  $result = Mage::getStoreConfig ( 'GluuOxd/Openid/iconSpace' );
76  break;
77  case 'iconCustomSize' :
78  $result = Mage::getStoreConfig ( 'GluuOxd/Openid/iconCustomSize' );
79  break;
80  case 'iconCustomWidth' :
81  $result = Mage::getStoreConfig ( 'GluuOxd/Openid/iconCustomWidth' );
82  break;
83  case 'iconCustomHeight' :
84  $result = Mage::getStoreConfig ( 'GluuOxd/Openid/iconCustomHeight' );
85  break;
86  case 'iconCustomColor' :
87  $result = Mage::getStoreConfig ( 'GluuOxd/Openid/iconCustomColor' );
88  break;
89  }
90  foreach(unserialize(Mage::getStoreConfig ( 'gluu/oxd/oxd_openid_custom_scripts' )) as $custom_script){
91  if ($config == $custom_script['value'].'Enable') {
92  return Mage::getStoreConfig ( 'GluuOxd/Openid/'.$custom_script['value'].'Enable' );
93 
94  }
95  }
96  return $result;
97  }

このクラス詳解は次のファイルから抽出されました: