Exemplo n.º 1
0
        return $intNumber1 + $intNumber2;
    }
    /**
     * Returns the Date as a QDateTime.
     * Note that the QSoapService handler will automatically convert to a valid
     * SOAP dateTime.
     * 
     * @param int $intMonth
     * @param int $intDay
     * @param int $intYear
     * @return QDateTime
     */
    public function GetDate($intMonth, $intDay, $intYear)
    {
        $dttToReturn = new QDateTime($intYear . '-' . $intMonth . '-' . $intDay);
        return $dttToReturn;
    }
    /**
     * Gets all the Person objects with a certain last name as an array
     * 
     * @param string $strLastName
     * @return Person[]
     */
    public function GetPeople($strLastName)
    {
        return Person::QueryArray(QQ::Equal(QQN::Person()->LastName, $strLastName));
    }
}
// We need to RUN the WebService (just like how we run a QForm)
ExampleService::Run('ExampleService', 'http://examples.qcodo.com');
        return $intNumber1 + $intNumber2;
    }
    /**
     * Returns the Date as a QDateTime.
     * Note that the QSoapService handler will automatically convert to a valid
     * SOAP dateTime.
     * 
     * @param int $intMonth
     * @param int $intDay
     * @param int $intYear
     * @return QDateTime
     */
    public function GetDate($intMonth, $intDay, $intYear)
    {
        $dttToReturn = new QDateTime($intYear . '-' . $intMonth . '-' . $intDay);
        return $dttToReturn;
    }
    /**
     * Gets all the Person objects with a certain last name as an array
     * 
     * @param string $strLastName
     * @return Person[]
     */
    public function GetPeople($strLastName)
    {
        return Person::QueryArray(QQ::Equal(QQN::Person()->LastName, $strLastName));
    }
}
// We need to RUN the WebService (just like how we run a QForm)
ExampleService::Run('ExampleService', 'http://examples.qcu.be');