src/Dialog/AbstractDialog.php
public function getArgs()
    {
        $args = array(
            '--' . $this->getType()
        );

        foreach ($this as $name => $value) {
            if (!in_array($name, array('inbuffer')) && $value !== null && $value !== false && !is_array($value)) {
                $name = $this->decamelize($name);

                if ($value !== true) {
                    // append value if this is not a boolean arg
                    $name .= '=' . $value;
                }

                // all arguments start with a double dash
                $args []= '--' . $name;
            }
        }

        return $args;
    }
public function getArgs()
    {
        $args = array(
            '--' . $this->getType()
        );

        foreach ($this as $name => $value) {
            if (!in_array($name, array('inbuffer')) && $value !== null && $value !== false && !is_array($value)) {
                $name = $this->decamelize($name);

                if ($value !== true) {
                    // append value if this is not a boolean arg
                    $name .= '=' . $value;
                }

                // all arguments start with a double dash
                $args []= '--' . $name;
            }
        }

        return $args;
    }
public function getArgs ( ) { $ args = array ( '--' . $ this -> getType ( ) ) ; foreach ( $ this as $ name => $ value ) { if ( ! in_array ( $ name , array ( 'inbuffer' ) ) && $ value !== null && $ value !== false && ! is_array ( $ value ) ) { $ name = $ this -> decamelize ( $ name ) ; if ( $ value !== true ) { // append value if this is not a boolean arg $ name .= '=' . $ value ; } // all arguments start with a double dash $ args [ ] = '--' . $ name ; } } return $ args ; }
Returns an array of arguments to pass to the zenity bin to produce the current dialog.

Internally, this will automatically fetch all properties of the current
instance and format them accordingly to zenity arguments.

@return string[]
@internal
Returns an array of arguments to pass to the zenity bin to produce the current dialog .