getFlag() public static method

public static getFlag ( $name ) : mixed
$name
return mixed
Example #1
0
 /**
  * @param $timestamp
  */
 protected function setDateFromTimestamp($timestamp)
 {
     if (\Pimcore\Config::getFlag("useZendDate")) {
         $this->date = new \Pimcore\Date($timestamp);
     } else {
         $this->date = new \Carbon\Carbon();
         $this->date->setTimestamp($timestamp);
     }
 }