Files
Testing/vidchat/m/SabreAMF/RecordSet.php
sean 0e8a8b3028
Some checks are pending
deploy-testing / deploy (push) Waiting to run
Initial testing snapshot
2026-11-17 16:15:01 -05:00

71 lines
1.6 KiB
PHP

<?php
require_once 'SabreAMF/ITypedObject.php';
/**
* SabreAMF_RecordSet
*
* @uses SabreAMF_ITypedObject
* @uses Countable
* @package SabreAMF
* @version $Id: RecordSet.php 233 2009-06-27 23:10:34Z evertpot $
* @copyright Copyright (C) 2006-2009 Rooftop Solutions. All rights reserved.
* @author Evert Pot (http://www.rooftopsolutions.nl/)
* @licence http://www.freebsd.org/copyright/license.html BSD License (4 Clause)
*/
abstract class SabreAMF_RecordSet implements SabreAMF_ITypedObject, Countable {
/**
* getData
*
* @return array
*/
abstract public function getData();
/**
* getColumnNames
*
* @return array
*/
abstract public function getColumnNames();
/**
* getAMFClassName
*
* @return string
*/
final public function getAMFClassName() {
return 'RecordSet';
}
/**
* getAMFData
*
* @return object
*/
public function getAMFData() {
return (object)array(
'serverInfo' => (object)array(
'totalCount' => $this->count(),
'initialData' => $this->getData(),
'cursor' => 1,
'serviceName' => false,
'columnNames' => $this->getColumnNames(),
'version' => 1,
'id' => false,
)
);
}
}