public static function getInstance() { if (!is_object(self::$instance)) { self::$instance = new self(); } return self::$instance; }
public static function getWeightObject() { if (!self::$weight) { require_once 'weight.php'; self::$weight = K2StoreWeight::getInstance(); } return self::$weight; }