Disorder::getDisorderOptions PHP Method

getDisorderOptions() public static method

Fetch a list of disorders whose term matches a provided value (with wildcards).
public static getDisorderOptions ( string $term ) : array
$term string
return array
    public static function getDisorderOptions($term)
    {
        return Yii::app()->db->createCommand()->select('term')->from('disorder')->where('term LIKE :term and active = 1', array(':term' => "%{$term}%"))->queryColumn();
    }