OCA\Richdocuments\Db::execute PHP Метод

execute() защищенный Метод

Execute a query on database
protected execute ( string $statement, mixed $args = null ) : mixed
$statement string query to be executed
$args mixed value(s) for the query. If omited the query will be run on the current object $data
Результат mixed (array/false)
    protected function execute($statement, $args = null)
    {
        $query = \OC::$server->getDatabaseConnection()->prepare($statement);
        if (!is_null($args)) {
            $result = $query->execute($args);
        } elseif (count($this->data)) {
            $result = $query->execute($this->data);
        } else {
            $result = $query->execute();
        }
        return $result ? $query : false;
    }