public function get($function)
    {
        $this->toDispatch[] = $function;

        if (is_null($this->dataProvider)) {
            $this->currentData = null;
            $this->dispatchData();
            return;
        }

        if (is_null($this->currentData)) {
            if (!$this->callMade) {
                $this->callMade = true;
                $this->dataProvider->request();
            }
            return;
        }

        $this->dispatchData();
    }
public function get($function)
    {
        $this->toDispatch[] = $function;

        if (is_null($this->dataProvider)) {
            $this->currentData = null;
            $this->dispatchData();
            return;
        }

        if (is_null($this->currentData)) {
            if (!$this->callMade) {
                $this->callMade = true;
                $this->dataProvider->request();
            }
            return;
        }

        $this->dispatchData();
    }
public function get ( $ function ) { $ this -> toDispatch [ ] = $ function ; if ( is_null ( $ this -> dataProvider ) ) { $ this -> currentData = null ; $ this -> dispatchData ( ) ; return ; } if ( is_null ( $ this -> currentData ) ) { if ( ! $ this -> callMade ) { $ this -> callMade = true ; $ this -> dataProvider -> request ( ) ; } return ; } $ this -> dispatchData ( ) ; }
Get TM.Scores or SM.Scores.

@param callback $function

@return void
Get TM . Scores or SM . Scores .