23 lines
382 B
PHP
23 lines
382 B
PHP
<?php
|
|
|
|
namespace models;
|
|
|
|
class Staking extends BaseModel {
|
|
|
|
const STAKING_STATUS = 0;
|
|
const UNSTAKE_STATUS = 1;
|
|
|
|
public static function all($address)
|
|
{
|
|
$rows = SqlHelper::ormSelect(
|
|
myself()->_getMysql(''),
|
|
't_staking',
|
|
array(
|
|
'address' => $address
|
|
)
|
|
);
|
|
return $rows;
|
|
}
|
|
|
|
}
|