Back to PhocacartPayment class

Method getInfoDescriptionById

public static
getInfoDescriptionById
(mixed $id)

Method getInfoDescriptionById - Source code

public static function getInfoDescriptionById($id)
{
    if ((int) $id > 0) {
        $db = Factory::getDBO();
        $query = 'SELECT a.description_info' . ' FROM #__phocacart_payment_methods AS a' . ' WHERE a.published = 1' . ' AND a.type IN (0,2)' . ' AND a.id = ' . (int) $id . ' ORDER BY id LIMIT 1';
        $db->setQuery($query);
        return $db->loadResult();
    }
}