XPSPL\SIG::get_index PHP Method

get_index() public method

Returns the signal index.
public get_index ( ) : boolean
return boolean
    public function get_index()
    {
        return $this->_index;
    }

Usage Example

示例#1
0
文件: signals.php 项目: prggmr/xpspl
 /**
  * Deletes a signal from the database.
  *
  * @param  object  $signal  \XPSPL\SIG
  *
  * @return  void
  */
 public function delete_signal(\XPSPL\SIG $signal)
 {
     if ($this->offsetExists($signal->get_index())) {
         $this->offsetUnset($signal->get_index());
         return;
     }
     return;
 }