Added newest update from EGH
This commit is contained in:
23
www/protected/components/MsHelper.php
Normal file
23
www/protected/components/MsHelper.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
class MsHelper {
|
||||
public static function getStringDBVar($name)
|
||||
{
|
||||
$connection = Yii::app()->db;
|
||||
|
||||
$command=$connection->createCommand("SELECT SValue FROM {{othervalues}} WHERE Name = '$name'");
|
||||
$val = $command->queryScalar();
|
||||
|
||||
return $val;
|
||||
}
|
||||
|
||||
public static function getIntDBVar($name)
|
||||
{
|
||||
$connection = Yii::app()->db;
|
||||
|
||||
$command=$connection->createCommand("SELECT [Value] FROM {{othervalues}} WHERE Name = '$name'");
|
||||
$val = $command->queryScalar();
|
||||
|
||||
return $val;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user