You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
< ? php
require_once ( dirname ( __FILE__ ) . '/' . '../GTApiRequest.php' );
require_once ( dirname ( __FILE__ ) . '/' . '../user/GTCidAlias.php' );
class GTAliasRequest extends GTApiRequest
{
//dataList Json Array 数据列表, 数组长度不大于200
private $dataList = array ();
public function getDataList ()
{
return $this -> dataList ;
}
//添加单个CidAlias
public function addDataList ( $cidAlias )
{
array_push ( $this -> dataList , $cidAlias );
}
//set CidAlias数组
public function setDataList ( $cidAliasList )
{
$this -> dataList = $cidAliasList ;
}
public function getApiParam ()
{
$this -> apiParam [ " data_list " ] = array ();
foreach ( $this -> dataList as $value ) {
array_push ( $this -> apiParam [ " data_list " ], $value -> getApiParam ());
}
return $this -> apiParam ;
}
}