Exemplo n.º 1
0
 public function __construct($timestamp)
 {
     if (SMReflection::IsInstanceOf($timestamp, 'SMDateTime')) {
         if (self::UseNativeDateTimeClass()) {
             $this->dateTime = $timestamp->GetDatetime();
         } else {
             $this->timestamp = $timestamp->GetTimestamp();
         }
     } else {
         if (self::UseNativeDateTimeClass()) {
             $this->dateTime = new DateTime($timestamp);
         } else {
             $this->timestamp = $timestamp;
         }
     }
 }
 public function GetOrderable()
 {
     if (SMReflection::IsInstanceOf($this->GetInnerField(), 'CustomDatasetFieldViewColumn')) {
         return $this->GetInnerField()->GetOrderable();
     } else {
         return false;
     }
 }