/** * Generate dropdown select box options for sources. * * @return array */ public static function getSourceSelect() { return \DF\Utilities::ipull(self::getSourceInfo(), 'name'); }
public static function getHashes() { $em = self::getEntityManager(); $ids_raw = $em->createQuery('SELECT sebt.id, sebt.hash FROM ' . __CLASS__ . ' sebt')->getArrayResult(); return \DF\Utilities::ipull($ids_raw, 'id', 'hash'); }