public static function DateTimePlus::__callStatic
public static DateTimePlus::__callStatic($method, $args)
Implements the magic __callStatic method.
Passes through all unknown static calls onto the DateTime object.
File
- core/lib/Drupal/Component/Datetime/DateTimePlus.php, line 344
Class
- DateTimePlus
- Wraps DateTime().
Namespace
Drupal\Component\DatetimeCode
public static function __callStatic($method, $args) { if (!method_exists('\DateTime', $method)) { throw new \BadMethodCallException(sprintf('Call to undefined method %s::%s()', get_called_class(), $method)); } return call_user_func_array(array('\DateTime', $method), $args); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Component!Datetime!DateTimePlus.php/function/DateTimePlus::__callStatic/8.1.x