You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
421 B
17 lines
421 B
<?php
|
|
class Code
|
|
{
|
|
|
|
/**
|
|
* @param string $fieldName
|
|
* @param string $codeName
|
|
* @return mixed
|
|
*/
|
|
public static function getContent($fieldName = '%', $codeName = '%')
|
|
{
|
|
list($value) = DB::fields("select content from code where
|
|
field_name like '" . $fieldName . "%' and code_name like '" . $codeName . "%' ");
|
|
|
|
return $value;
|
|
}
|
|
}
|
|
|