示例#1
0
 function get_clase()
 {
     //Busco las dos claves que me sirven, van ambas juntas o nada.
     $result = array_intersect_keys($this->_datos, array('subclase' => '1', 'subclase_archivo' => '1'));
     if (count($result) < 2) {
         throw toba_error_def('La definición de subclase para el gadget esta incompleta');
     }
     return $result;
 }
示例#2
0
文件: Pop3.php 项目: raz0rsdge/horde
 /**
  */
 public function resolveIds(Horde_Imap_Client_Mailbox $mailbox, Horde_Imap_Client_Ids $ids, $convert = 0)
 {
     if (!$ids->special && (!$convert || !$ids->sequence && $convert == 1 || $ids->isEmpty())) {
         return clone $ids;
     }
     $uids = $this->_pop3Cache('uidl');
     return $this->getIdsOb($ids->all ? array_values($uids) : array_intersect_keys($uids, $ids->ids));
 }