Initialize Timetable.

@return $this
320443
public function init()
    {
        $this->timetable = [];

        $dimensions['service'] = $this->inflateServices();
        $dimensions['date'] = $this->inflateDates();
        $dimensions['time'] = $this->inflateTimes();

        foreach ($dimensions['service'] as $service) {
            foreach ($dimensions['date'] as $date) {
                foreach ($dimensions['time'] as $time) {
                    $this->capacity($date, $time, $service, 0);
                }
            }
        }

        return $this;
    }
1370890
public function register()
    {
        if (!defined('SCOOL_TIMETABLES_PATH')) {
            define('SCOOL_TIMETABLES_PATH', realpath(__DIR__.'/../../'));
        }

        $this->app->bind('Timetables', function () {
            return new \Scool\Timetables\Timetables();
        });
    }
906322
public function daily()
    {
        $this->setScheduleMinute(0);
        $this->setScheduleHour(0);
        $this->setScheduleDayOfMonth(self::ANY);
        $this->setScheduleMonth(self::ANY);
        $this->setScheduleDayOfWeek(self::ANY);

        return $this;
    }
790462
public function init() {
		$this->_swift['transport'] = \Swift_SmtpTransport::newInstance($this->smtp, $this->port, true === $this->ssl ? 'ssl' : '');
		$this->_swift['transport']->setUsername($this->username);
		$this->_swift['transport']->setPassword($this->password);
		
		$this->_swift['mailer'] = \Swift_mailer::newInstance($this->_swift['transport']);
		
		$this->_swift['message'] = \Swift_message::newInstance();
		
		return $this;
	}
1255311
private function init()
    {
        $this->curl = curl_init();
        $this->setUserAgent(self::USER_AGENT);
        $this->setOpt(CURLINFO_HEADER_OUT, true);
        $this->setOpt(CURLOPT_HEADER, false);
        $this->setOpt(CURLOPT_RETURNTRANSFER, true);
        $this->setOpt(CURLOPT_HEADERFUNCTION, array($this, 'addResponseHeaderLine'));
        return $this;
    }
1351368
public function init()
    {
        return $this
            ->setEvents(array())
            ->setGroups(array())
            ->setModules(array())
            ->setNodeClass(null)
            ->setLogger(null)
            ->setWebSocketServer(null)
            ->setKernelEnvironment(null)
        ;
    }
1342996
protected function registerScheduleRunCommand()
    {
        Zilf::$container->register(ScheduleRunCommand::class, function (){
            $schedule = Zilf::$container->getShare(Schedule::class);
            return new ScheduleRunCommand($schedule);
        });
    }
366581
public function initialize()
    {
        $this->setSource($this->tableName);
        $this->belongsTo('route_id', __NAMESPACE__ . '\Route', 'id', array('alias' => 'Route'));
        $this->belongsTo('navigation_id', __NAMESPACE__ . '\Navigation', 'id', array('alias' => 'Navigation'));
    }
483163
public function init()
    {
        $this->config->set('http', [
            'request' => &$this->request,
            'response' => &$this->response,
        ]);

        Event::trigger('BeforeSystemInit', $this);

        if (!defined('IS_CONSOLE')) {
            $this->initHttpRequest();
        }

        Event::trigger('AfterSystemInit', $rtn);

        return $rtn;
    }
937332
protected function initialize()
    {
        if ($this->initialized !== false) {
            return;
        }

        $this->query(
            "CREATE TABLE IF NOT EXISTS `{table}` "
            . "( `key` VARCHAR(255), `value` TEXT, `ttl` INT UNSIGNED, PRIMARY KEY (`key`) )"
        );

        $this->query(
            "CREATE EVENT IF NOT EXISTS `apply_ttl_{$this->table}` ON SCHEDULE EVERY 1 HOUR DO BEGIN"
            . " DELETE FROM {table} WHERE `ttl` < NOW();"
            . " END"
        );

        $this->initialized = true;
    }
156204
public function initialize()
    {
        setlocale(LC_ALL, $this->locale->getIso() . '.' . $this->encoding);
        $this->localeInfo = localeconv();

        return $this;
    }
241993
public static function now()
    {
        $date = new DateTime();
        if (self::$freeze) {
            $date->setTimestamp(self::$freezeDate->getTimestamp());
            $date->setTimezone(self::$freezeDate->getTimezone());
        }
        return new Clock($date);
    }
665851
public function schedule($when)
    {
        if (is_numeric($when)) {
            $dt = new DateTime;
            $dt->setTimestamp($when);
        } else {
            $dt = new DateTime($when);
        }

        $this->scheduled_at = $dt->format(DateTime::ISO8601);

        return $this;
    }
11244
public function initialize()
    {
        $this->_connection->table(self::TABLE)
            ->createIfNotExists(array(
                'name' => new \Pheasant\Types\StringType(255, 'notnull primary'),
                'id' => new \Pheasant\Types\IntegerType(null, 'notnull unsigned'),
                ));

        return $this;
    }
484841
private function setPageStart()
    {
        $firstPage = $this->currentPage - $this->numberLinks;

        if ($firstPage >= 1) {
            $this->pageStart = $firstPage;
        } else {
            $this->pageStart = 1;
        }

        return $this;
    }
1084413
public function init() {
		if ($this->initialized)
			return $this;
		$this->initialized = true;
		$this->check_tables();
		return $this;
	}
391310
public function onMondayThroughFriday()
    {
        $this->daysOfWeek = [
            DateBuilder::MONDAY,
            DateBuilder::THURSDAY,
            DateBuilder::WEDNESDAY,
            DateBuilder::THURSDAY,
            DateBuilder::FRIDAY
        ];

        return $this;
    }