Overview

Packages

  • tipy

Classes

  • Tipy
  • TipyApp
  • TipyCli
  • TipyCliSession
  • TipyConfig
  • TipyController
  • TipyCookie
  • TipyDAO
  • TipyEnv
  • TipyFlash
  • TipyInflector
  • TipyInput
  • TipyIOWrapper
  • TipyLogger
  • TipyMailer
  • TipyModel
  • TipyOutput
  • TipyRequest
  • TipySession
  • TipyTestCase
  • TipyTestRunner
  • TipyView

Exceptions

  • AssertionFailedException
  • CompileErrorException
  • CompileWarningException
  • CoreErrorException
  • CoreWarningException
  • DeprecatedException
  • NoMethodException
  • NoticeException
  • ParseException
  • RecoverableErrorException
  • StrictException
  • TipyDaoException
  • TipyException
  • TipyModelException
  • TipyRollbackException
  • TipyValidationException
  • UserDeprecatedException
  • UserErrorException
  • UserNoticeException
  • UserWarningException
  • WarningException
  • Overview
  • Package
  • Class
  • Deprecated
  • Todo

Class TipyCookie

Access cookies the same way as any other tipy input/output objects

class MyController extends TipyController {
    public function index() {
        $value = $this->cookie->get('myVar1');
        $this->cookie->set('myVar2', 'Hello World!');
        // ...
    }
}
Package: tipy
Located at src/TipyCookie.php
Methods summary
public
# __construct( )

Construct TipyCookie instance from $_COOKIE.

Construct TipyCookie instance from $_COOKIE.

public mixed
# get( string $key, mixed $defaultValue,… )

Get cookie variable by its name

Get cookie variable by its name

Parameters

$key
$defaultValue,…

Returns

mixed
public mixed
# set( string $key, mixed $value, integer $expireTime = 0 )

Set cookie variable. You may pass unix timestamp as optional argument to set cookie expire time.

Set cookie variable. You may pass unix timestamp as optional argument to set cookie expire time.

Parameters

$key
$value
$expireTime

Returns

mixed
public array
# getAll( )

Get all cookies as array

Get all cookies as array

Returns

array
tipy API documentation generated by ApiGen