public function unregisterTimeId($id)
    {
        if (is_array($id)) {
            foreach ($id as $each) {
                $this->unregisterTimeId($each);
            }
            return $this;
        }

        foreach ($this->_timehandler as $i => &$handlerinfo) {
            if ($handlerinfo['id'] == $id) {
                unset($this->_timehandler[$i]);

                $this->log(SMARTIRC_DEBUG_TIMEHANDLER, 'DEBUG_TIMEHANDLER: '
                    .'timehandler('.$id.') unregistered', __FILE__, __LINE__
                );
                $this->_timehandler = array_values($this->_timehandler);

                $timerarray = array();
                foreach ($this->_timehandler as $values) {
                    $timerarray[] = $values->interval;
                }

                $this->_mintimer = (
                    array_multisort($timerarray, SORT_NUMERIC, SORT_ASC)
                    && isset($timerarray[0])
                ) ? $timerarray[0]
                    : false;

                return $this;
            }
        }

        $this->log(SMARTIRC_DEBUG_TIMEHANDLER, 'DEBUG_TIMEHANDLER: could not '
            ."find timehandler id: $id _not_ unregistered",
            __FILE__, __LINE__
        );
        return false;
    }
public function unregisterTimeId($id)
    {
        if (is_array($id)) {
            foreach ($id as $each) {
                $this->unregisterTimeId($each);
            }
            return $this;
        }

        foreach ($this->_timehandler as $i => &$handlerinfo) {
            if ($handlerinfo['id'] == $id) {
                unset($this->_timehandler[$i]);

                $this->log(SMARTIRC_DEBUG_TIMEHANDLER, 'DEBUG_TIMEHANDLER: '
                    .'timehandler('.$id.') unregistered', __FILE__, __LINE__
                );
                $this->_timehandler = array_values($this->_timehandler);

                $timerarray = array();
                foreach ($this->_timehandler as $values) {
                    $timerarray[] = $values->interval;
                }

                $this->_mintimer = (
                    array_multisort($timerarray, SORT_NUMERIC, SORT_ASC)
                    && isset($timerarray[0])
                ) ? $timerarray[0]
                    : false;

                return $this;
            }
        }

        $this->log(SMARTIRC_DEBUG_TIMEHANDLER, 'DEBUG_TIMEHANDLER: could not '
            ."find timehandler id: $id _not_ unregistered",
            __FILE__, __LINE__
        );
        return false;
    }
public function unregisterTimeId ( $ id ) { if ( is_array ( $ id ) ) { foreach ( $ id as $ each ) { $ this -> unregisterTimeId ( $ each ) ; } return $ this ; } foreach ( $ this -> _timehandler as $ i => & $ handlerinfo ) { if ( $ handlerinfo [ 'id' ] == $ id ) { unset ( $ this -> _timehandler [ $ i ] ) ; $ this -> log ( SMARTIRC_DEBUG_TIMEHANDLER , 'DEBUG_TIMEHANDLER: ' . 'timehandler(' . $ id . ') unregistered' , __FILE__ , __LINE__ ) ; $ this -> _timehandler = array_values ( $ this -> _timehandler ) ; $ timerarray = array ( ) ; foreach ( $ this -> _timehandler as $ values ) { $ timerarray [ ] = $ values -> interval ; } $ this -> _mintimer = ( array_multisort ( $ timerarray , SORT_NUMERIC , SORT_ASC ) && isset ( $ timerarray [ 0 ] ) ) ? $ timerarray [ 0 ] : false ; return $ this ; } } $ this -> log ( SMARTIRC_DEBUG_TIMEHANDLER , 'DEBUG_TIMEHANDLER: could not ' . "find timehandler id: $id _not_ unregistered" , __FILE__ , __LINE__ ) ; return false ; }
unregisters an existing timehandler via the id

@api
@see example7.php
@param integer $id
@return boolean
unregisters an existing timehandler via the id