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; }
/** */ 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)); }