public function type($type = '', $toggle = false)
    {
        // Return value
        if (empty($type)) {
            return $this->type;
        }

        // Set value
        $this->type = $type . ($toggle === true ? ' ' . self::TP_TOGGLE : '');

        return $this;
    }
public function type($type = '', $toggle = false)
    {
        // Return value
        if (empty($type)) {
            return $this->type;
        }

        // Set value
        $this->type = $type . ($toggle === true ? ' ' . self::TP_TOGGLE : '');

        return $this;
    }
public function type ( $ type = '' , $ toggle = false ) { // Return value if ( empty ( $ type ) ) { return $ this -> type ; } // Set value $ this -> type = $ type . ( $ toggle === true ? ' ' . self :: TP_TOGGLE : '' ) ; return $ this ; }
Gets or defines the type property.

@param string $type   The type value.
You can use TP_OBEDIENT or TP_PERSISTENT.
@param bool   $toggle Toggle functionality for popup.
This defines that the popup will be showed and hide by the same listener.

@return mixed The type property, or $this.
Gets or defines the type property .