public function getAction()
    {
        if ($this->action) {
            return $this->action;
        }

        if ($this->isMode(static::MODE_EDIT)) {
            return $this->form->resource().'/'.$this->id;
        }

        if ($this->isMode(static::MODE_CREATE)) {
            return $this->form->resource(-1);
        }

        return '';
    }
public function getAction()
    {
        if ($this->action) {
            return $this->action;
        }

        if ($this->isMode(static::MODE_EDIT)) {
            return $this->form->resource().'/'.$this->id;
        }

        if ($this->isMode(static::MODE_CREATE)) {
            return $this->form->resource(-1);
        }

        return '';
    }
public function getAction ( ) { if ( $ this -> action ) { return $ this -> action ; } if ( $ this -> isMode ( static :: MODE_EDIT ) ) { return $ this -> form -> resource ( ) . '/' . $ this -> id ; } if ( $ this -> isMode ( static :: MODE_CREATE ) ) { return $ this -> form -> resource ( - 1 ) ; } return '' ; }
Get Form action.

@return string
Get Form action .