Class yii\base\BaseObject

Inheritanceyii\base\BaseObject
Implementsyii\base\Configurable
Subclassesluya\Hook, luya\TagParser, luya\admin\Module, luya\admin\apis\ApiUserController, luya\admin\apis\CommonController, luya\admin\apis\ConfigController, luya\admin\apis\EffectController, luya\admin\apis\FilterController, luya\admin\apis\GroupController, luya\admin\apis\LangController, luya\admin\apis\LoggerController, luya\admin\apis\MenuController, luya\admin\apis\NgrestLogController, luya\admin\apis\PropertyController, luya\admin\apis\ProxyBuildController, luya\admin\apis\ProxyController, luya\admin\apis\ProxyMachineController, luya\admin\apis\QueueLogController, luya\admin\apis\QueueLogErrorController, luya\admin\apis\RemoteController, luya\admin\apis\SearchController, luya\admin\apis\StorageController, luya\admin\apis\StorageImageController, luya\admin\apis\TagController, luya\admin\apis\TimestampController, luya\admin\apis\UserController, luya\admin\assets\AngularI18n, luya\admin\assets\Jquery, luya\admin\assets\Login, luya\admin\assets\Main, luya\admin\aws\ApiOverviewActiveWindow, luya\admin\aws\ApiRequestInsightActiveWindow, luya\admin\aws\ChangePasswordActiveWindow, luya\admin\aws\CoordinatesActiveWindow, luya\admin\aws\DeleteTagsActiveWindow, luya\admin\aws\DetailViewActiveWindow, luya\admin\aws\FlowActiveWindow, luya\admin\aws\GroupAuthActiveWindow, luya\admin\aws\ImageSelectCollectionActiveWindow, luya\admin\aws\StorageFilterImagesActiveWindow, luya\admin\aws\TaggableActiveWindow, luya\admin\aws\UserHistorySummaryActiveWindow, luya\admin\base\BaseCrudController, luya\admin\base\CheckboxArrayProperty, luya\admin\base\CheckboxProperty, luya\admin\base\Controller, luya\admin\base\Filter, luya\admin\base\ImageProperty, luya\admin\base\Module, luya\admin\base\Property, luya\admin\base\RadioProperty, luya\admin\base\ReloadButton, luya\admin\base\RestActiveController, luya\admin\base\RestController, luya\admin\behaviors\BlameableBehavior, luya\admin\behaviors\LogBehavior, luya\admin\behaviors\QueueLogBehavior, luya\admin\behaviors\UserRequestBehavior, luya\admin\buttons\DuplicateActiveButton, luya\admin\buttons\TimestampActiveButton, luya\admin\buttons\ToggleStatusActiveButton, luya\admin\commands\ActiveWindowController, luya\admin\commands\CrudController, luya\admin\commands\FilterController, luya\admin\commands\LogController, luya\admin\commands\ProxyController, luya\admin\commands\QueueController, luya\admin\commands\SetupController, luya\admin\commands\StorageController, luya\admin\commands\TagController, luya\admin\components\AdminLanguage, luya\admin\components\AdminMenu, luya\admin\components\AdminMenuBuilder, luya\admin\components\AdminUser, luya\admin\components\Auth, luya\admin\components\UrlRule, luya\admin\controllers\AccountController, luya\admin\controllers\ApiUserController, luya\admin\controllers\ConfigController, luya\admin\controllers\DefaultController, luya\admin\controllers\EffectController, luya\admin\controllers\FileController, luya\admin\controllers\FilterController, luya\admin\controllers\GroupController, luya\admin\controllers\LangController, luya\admin\controllers\LoggerController, luya\admin\controllers\LoginController, luya\admin\controllers\NgrestLogController, luya\admin\controllers\PropertyController, luya\admin\controllers\ProxyBuildController, luya\admin\controllers\ProxyMachineController, luya\admin\controllers\QueueLogController, luya\admin\controllers\QueueLogErrorController, luya\admin\controllers\StorageController, luya\admin\controllers\StorageImageController, luya\admin\controllers\TagController, luya\admin\controllers\TemplateController, luya\admin\controllers\UptimeController, luya\admin\controllers\UserController, luya\admin\dashboard\BaseDashboardObject, luya\admin\dashboard\BasicDashboardObject, luya\admin\dashboard\ChartDashboardObject, luya\admin\dashboard\ListDashboardObject, luya\admin\dashboard\TableDashboardObject, luya\admin\events\FileDownloadEvent, luya\admin\events\FileEvent, luya\admin\events\UserAccessTokenLoginEvent, luya\admin\file\Item, luya\admin\file\Iterator, luya\admin\file\Query, luya\admin\filesystem\DummyFileSystem, luya\admin\filesystem\LocalFileSystem, luya\admin\filters\LargeCrop, luya\admin\filters\LargeThumbnail, luya\admin\filters\MediumCrop, luya\admin\filters\MediumThumbnail, luya\admin\filters\SmallCrop, luya\admin\filters\SmallLandscape, luya\admin\filters\SmallThumbnail, luya\admin\filters\TinyCrop, luya\admin\filters\TinyThumbnail, luya\admin\folder\Item, luya\admin\folder\Iterator, luya\admin\folder\Query, luya\admin\helpers\AngularObject, luya\admin\image\Item, luya\admin\image\Iterator, luya\admin\image\Query, luya\admin\importers\AuthImporter, luya\admin\importers\FilterImporter, luya\admin\importers\PropertyImporter, luya\admin\jobs\ImageFilterJob, luya\admin\jobs\ScheduleJob, luya\admin\models\ApiUser, luya\admin\models\Auth, luya\admin\models\Config, luya\admin\models\Group, luya\admin\models\GroupAuth, luya\admin\models\Lang, luya\admin\models\Logger, luya\admin\models\LoginForm, luya\admin\models\NgrestLog, luya\admin\models\Property, luya\admin\models\ProxyBuild, luya\admin\models\ProxyMachine, luya\admin\models\QueueLog, luya\admin\models\QueueLogError, luya\admin\models\ResetPasswordChangeForm, luya\admin\models\ResetPasswordForm, luya\admin\models\Scheduler, luya\admin\models\SearchData, luya\admin\models\StorageEffect, luya\admin\models\StorageFile, luya\admin\models\StorageFilter, luya\admin\models\StorageFilterChain, luya\admin\models\StorageFolder, luya\admin\models\StorageImage, luya\admin\models\Tag, luya\admin\models\TagRelation, luya\admin\models\User, luya\admin\models\UserAuthNotification, luya\admin\models\UserChangePassword, luya\admin\models\UserDevice, luya\admin\models\UserGroup, luya\admin\models\UserLogin, luya\admin\models\UserLoginLockout, luya\admin\models\UserOnline, luya\admin\models\UserRequest, luya\admin\models\UserSetting, luya\admin\ngrest\Config, luya\admin\ngrest\aw\ActiveWindowFormField, luya\admin\ngrest\aw\ActiveWindowFormWidget, luya\admin\ngrest\aw\CallbackButtonFileDownloadWidget, luya\admin\ngrest\aw\CallbackButtonWidget, luya\admin\ngrest\base\ActiveButton, luya\admin\ngrest\base\ActiveSelection, luya\admin\ngrest\base\ActiveWindow, luya\admin\ngrest\base\ActiveWindowView, luya\admin\ngrest\base\Api, luya\admin\ngrest\base\BaseActiveResponse, luya\admin\ngrest\base\Controller, luya\admin\ngrest\base\NgRestActiveQuery, luya\admin\ngrest\base\NgRestEventBehavior, luya\admin\ngrest\base\NgRestModel, luya\admin\ngrest\base\NgRestRelation, luya\admin\ngrest\base\Plugin, luya\admin\ngrest\base\Render, luya\admin\ngrest\base\actions\CreateAction, luya\admin\ngrest\base\actions\DeleteAction, luya\admin\ngrest\base\actions\IndexAction, luya\admin\ngrest\base\actions\OptionsAction, luya\admin\ngrest\base\actions\TruncateAction, luya\admin\ngrest\base\actions\UpdateAction, luya\admin\ngrest\base\actions\ViewAction, luya\admin\ngrest\plugins\Angular, luya\admin\ngrest\plugins\Badge, luya\admin\ngrest\plugins\CheckboxList, luya\admin\ngrest\plugins\CheckboxRelation, luya\admin\ngrest\plugins\CheckboxRelationActiveQuery, luya\admin\ngrest\plugins\CmsPage, luya\admin\ngrest\plugins\Color, luya\admin\ngrest\plugins\Date, luya\admin\ngrest\plugins\Datetime, luya\admin\ngrest\plugins\Decimal, luya\admin\ngrest\plugins\File, luya\admin\ngrest\plugins\FileArray, luya\admin\ngrest\plugins\Hidden, luya\admin\ngrest\plugins\Html, luya\admin\ngrest\plugins\Image, luya\admin\ngrest\plugins\ImageArray, luya\admin\ngrest\plugins\Index, luya\admin\ngrest\plugins\Injector, luya\admin\ngrest\plugins\JsonObject, luya\admin\ngrest\plugins\Link, luya\admin\ngrest\plugins\MultipleInputs, luya\admin\ngrest\plugins\Number, luya\admin\ngrest\plugins\Password, luya\admin\ngrest\plugins\Raw, luya\admin\ngrest\plugins\Select, luya\admin\ngrest\plugins\SelectArray, luya\admin\ngrest\plugins\SelectArrayGently, luya\admin\ngrest\plugins\SelectAsyncApi, luya\admin\ngrest\plugins\SelectModel, luya\admin\ngrest\plugins\SelectRelationActiveQuery, luya\admin\ngrest\plugins\Slug, luya\admin\ngrest\plugins\SortRelation, luya\admin\ngrest\plugins\SortRelationArray, luya\admin\ngrest\plugins\SortRelationModel, luya\admin\ngrest\plugins\Sortable, luya\admin\ngrest\plugins\Text, luya\admin\ngrest\plugins\TextArray, luya\admin\ngrest\plugins\Textarea, luya\admin\ngrest\plugins\ToggleStatus, luya\admin\ngrest\plugins\Url, luya\admin\ngrest\plugins\Wysiwyg, luya\admin\ngrest\render\RenderActiveWindow, luya\admin\ngrest\render\RenderActiveWindowCallback, luya\admin\ngrest\render\RenderCrud, luya\admin\ngrest\render\RenderCrudView, luya\admin\ngrest\validators\StorageUploadValidator, luya\admin\openapi\Generator, luya\admin\openapi\events\PathParametersEvent, luya\admin\proxy\ClientBuild, luya\admin\proxy\ClientTable, luya\admin\proxy\ClientTransfer, luya\admin\selections\DeleteActiveSelection, luya\admin\storage\BaseFileSystemStorage, luya\admin\storage\ItemAbstract, luya\admin\storage\IteratorAbstract, luya\admin\tags\FileTag, luya\admin\validators\I18nRequiredValidator, luya\admin\validators\StorageUploadValidator, luya\base\DynamicModel, luya\base\HookEvent, luya\base\Module, luya\base\ModuleReflection, luya\base\PackageConfig, luya\base\PackageInstaller, luya\base\Widget, luya\behaviors\HtmlEncodeBehavior, luya\behaviors\JsonBehavior, luya\behaviors\TimestampBehavior, luya\cms\LinkConverter, luya\cms\Menu, luya\cms\Website, luya\cms\admin\Module, luya\cms\admin\apis\AdminController, luya\cms\admin\apis\BlockController, luya\cms\admin\apis\BlockgroupController, luya\cms\admin\apis\LayoutController, luya\cms\admin\apis\LogController, luya\cms\admin\apis\MenuController, luya\cms\admin\apis\NavContainerController, luya\cms\admin\apis\NavController, luya\cms\admin\apis\NavItemBlockController, luya\cms\admin\apis\NavItemController, luya\cms\admin\apis\NavItemPageBlockItemController, luya\cms\admin\apis\NavItemPageController, luya\cms\admin\apis\RedirectController, luya\cms\admin\apis\ThemeController, luya\cms\admin\apis\WebsiteController, luya\cms\admin\assets\Main, luya\cms\admin\aws\BlockPagesActiveWindow, luya\cms\admin\controllers\BlockController, luya\cms\admin\controllers\BlockgroupController, luya\cms\admin\controllers\ConfigController, luya\cms\admin\controllers\DefaultController, luya\cms\admin\controllers\LayoutController, luya\cms\admin\controllers\LogController, luya\cms\admin\controllers\NavcontainerController, luya\cms\admin\controllers\PageController, luya\cms\admin\controllers\PermissionController, luya\cms\admin\controllers\RedirectController, luya\cms\admin\controllers\ThemeController, luya\cms\admin\controllers\WebsiteController, luya\cms\admin\importers\BlockImporter, luya\cms\admin\importers\CmslayoutImporter, luya\cms\admin\importers\PropertyConsistencyImporter, luya\cms\admin\importers\ThemeImporter, luya\cms\base\BaseBlockInjector, luya\cms\base\BlockGroup, luya\cms\base\InternalBaseBlock, luya\cms\base\NavItemType, luya\cms\base\PhpBlock, luya\cms\base\PhpBlockView, luya\cms\behaviours\WebsiteScopeBehavior, luya\cms\frontend\Module, luya\cms\frontend\base\Controller, luya\cms\frontend\blockgroups\DevelopmentGroup, luya\cms\frontend\blockgroups\LayoutGroup, luya\cms\frontend\blockgroups\MainGroup, luya\cms\frontend\blockgroups\MediaGroup, luya\cms\frontend\blockgroups\ProjectGroup, luya\cms\frontend\blockgroups\TextGroup, luya\cms\frontend\blocks\HtmlBlock, luya\cms\frontend\blocks\MirrorLanguageBlock, luya\cms\frontend\blocks\ModuleBlock, luya\cms\frontend\commands\BlockController, luya\cms\frontend\commands\PageController, luya\cms\frontend\commands\UpdaterController, luya\cms\frontend\components\CatchAllUrlRule, luya\cms\frontend\components\RouteBehaviorUrlRule, luya\cms\frontend\components\WebsiteBehaviorUrlRule, luya\cms\frontend\controllers\BlockController, luya\cms\frontend\controllers\DefaultController, luya\cms\frontend\controllers\ErrorController, luya\cms\frontend\controllers\PreviewController, luya\cms\frontend\events\BeforeRenderEvent, luya\cms\frontend\events\MenuItemEvent, luya\cms\injectors\ActiveQueryCheckboxInjector, luya\cms\injectors\ActiveQueryRadioInjector, luya\cms\injectors\ActiveQuerySelectInjector, luya\cms\injectors\BaseActiveQueryInjector, luya\cms\injectors\LinkInjector, luya\cms\injectors\TagInjector, luya\cms\menu\InjectItem, luya\cms\menu\Item, luya\cms\menu\Query, luya\cms\menu\QueryIterator, luya\cms\models\Block, luya\cms\models\BlockGroup, luya\cms\models\Config, luya\cms\models\Layout, luya\cms\models\Log, luya\cms\models\Nav, luya\cms\models\NavContainer, luya\cms\models\NavItem, luya\cms\models\NavItemModule, luya\cms\models\NavItemPage, luya\cms\models\NavItemPageBlockItem, luya\cms\models\NavItemRedirect, luya\cms\models\NavPermission, luya\cms\models\Property, luya\cms\models\Redirect, luya\cms\models\Theme, luya\cms\models\Website, luya\cms\tags\AliasTag, luya\cms\tags\MenuTag, luya\cms\tags\PageTag, luya\cms\widgets\LangSwitcher, luya\cms\widgets\NavTree, luya\components\Formatter, luya\components\Mail, luya\console\Application, luya\console\Command, luya\console\Controller, luya\console\ErrorHandler, luya\console\Importer, luya\console\commands\BaseCrudController, luya\console\commands\HealthController, luya\console\commands\ImportController, luya\console\commands\MigrateController, luya\console\commands\ModuleController, luya\console\commands\ThemeController, luya\lazyload\IntersectionObserverPolyfillAsset, luya\lazyload\LazyLoad, luya\lazyload\LazyLoadAsset, luya\rest\ActiveController, luya\rest\Controller, luya\tag\BaseTag, luya\tag\tags\LinkTag, luya\tag\tags\MailTag, luya\tag\tags\TelTag, luya\testsuite\commands\GenerateFixtureController, luya\testsuite\components\DummyFileSystem, luya\testsuite\components\DummyMenu, luya\testsuite\components\DummySession, luya\testsuite\fixtures\ActiveRecordFixture, luya\testsuite\fixtures\NgRestModelFixture, luya\texttospeech\TextToSpeechAsset, luya\texttospeech\TextToSpeechWidget, luya\theme\SetupEvent, luya\theme\Theme, luya\theme\ThemeConfig, luya\theme\ThemeManager, luya\validators\FloatValidator, luya\validators\PhoneNumberValidator, luya\validators\StrengthValidator, luya\web\Application, luya\web\Asset, luya\web\AssetManager, luya\web\BaseLink, luya\web\Composition, luya\web\CompositionResolver, luya\web\Controller, luya\web\Element, luya\web\EmailLink, luya\web\ErrorHandler, luya\web\ErrorHandlerExceptionRenderEvent, luya\web\GroupUser, luya\web\JsonLd, luya\web\Request, luya\web\Svg, luya\web\TelephoneLink, luya\web\UrlManager, luya\web\UrlRule, luya\web\View, luya\web\WebsiteLink, luya\web\filters\JsonCruftFilter, luya\web\filters\ResponseCache, luya\web\filters\RobotsFilter, luya\web\jsonld\AggregateRating, luya\web\jsonld\Article, luya\web\jsonld\BarOrPub, luya\web\jsonld\BaseThing, luya\web\jsonld\BlogPosting, luya\web\jsonld\CafeOrCoffeeShop, luya\web\jsonld\Comment, luya\web\jsonld\ContactPoint, luya\web\jsonld\Country, luya\web\jsonld\CreativeWork, luya\web\jsonld\EntertainmentBusiness, luya\web\jsonld\Event, luya\web\jsonld\FoodEstablishment, luya\web\jsonld\GeoCoordinates, luya\web\jsonld\ImageObject, luya\web\jsonld\LiveBlogPosting, luya\web\jsonld\LocalBusiness, luya\web\jsonld\MediaObject, luya\web\jsonld\NightClub, luya\web\jsonld\Offer, luya\web\jsonld\Organization, luya\web\jsonld\Person, luya\web\jsonld\Place, luya\web\jsonld\PostalAddress, luya\web\jsonld\PropertyValue, luya\web\jsonld\Rating, luya\web\jsonld\Restaurant, luya\web\jsonld\Review, luya\web\jsonld\SocialMediaPosting, luya\web\jsonld\Thing, luya\widgets\SubmitButtonWidget, yii\base\Action, yii\base\ActionEvent, yii\base\ActionFilter, yii\base\Application, yii\base\Behavior, yii\base\Component, yii\base\Controller, yii\base\DynamicModel, yii\base\ErrorHandler, yii\base\Event, yii\base\InlineAction, yii\base\Model, yii\base\ModelEvent, yii\base\Module, yii\base\Object, yii\base\Request, yii\base\Response, yii\base\Security, yii\base\Theme, yii\base\View, yii\base\ViewEvent, yii\base\ViewRenderer, yii\base\Widget, yii\base\WidgetEvent, yii\behaviors\AttributeBehavior, yii\behaviors\AttributeTypecastBehavior, yii\behaviors\AttributesBehavior, yii\behaviors\BlameableBehavior, yii\behaviors\CacheableWidgetBehavior, yii\behaviors\OptimisticLockBehavior, yii\behaviors\SluggableBehavior, yii\behaviors\TimestampBehavior, yii\caching\ApcCache, yii\caching\ArrayCache, yii\caching\Cache, yii\caching\ChainedDependency, yii\caching\DbCache, yii\caching\DbDependency, yii\caching\DbQueryDependency, yii\caching\Dependency, yii\caching\DummyCache, yii\caching\ExpressionDependency, yii\caching\FileCache, yii\caching\FileDependency, yii\caching\MemCache, yii\caching\MemCacheServer, yii\caching\TagDependency, yii\caching\WinCache, yii\caching\XCache, yii\caching\ZendDataCache, yii\captcha\Captcha, yii\captcha\CaptchaAction, yii\captcha\CaptchaAsset, yii\captcha\CaptchaValidator, yii\console\Application, yii\console\Controller, yii\console\ErrorHandler, yii\console\Request, yii\console\Response, yii\console\controllers\AssetController, yii\console\controllers\BaseMigrateController, yii\console\controllers\CacheController, yii\console\controllers\FixtureController, yii\console\controllers\HelpController, yii\console\controllers\MessageController, yii\console\controllers\MigrateController, yii\console\controllers\ServeController, yii\console\widgets\Table, yii\data\ActiveDataFilter, yii\data\ActiveDataProvider, yii\data\ArrayDataProvider, yii\data\BaseDataProvider, yii\data\DataFilter, yii\data\Pagination, yii\data\Sort, yii\data\SqlDataProvider, yii\db\ActiveQuery, yii\db\ActiveRecord, yii\db\AfterSaveEvent, yii\db\BaseActiveRecord, yii\db\BatchQueryResult, yii\db\CheckConstraint, yii\db\ColumnSchema, yii\db\ColumnSchemaBuilder, yii\db\Command, yii\db\Connection, yii\db\Constraint, yii\db\DataReader, yii\db\DefaultValueConstraint, yii\db\Expression, yii\db\ForeignKeyConstraint, yii\db\IndexConstraint, yii\db\Migration, yii\db\Query, yii\db\QueryBuilder, yii\db\Schema, yii\db\SqlToken, yii\db\SqlTokenizer, yii\db\TableSchema, yii\db\Transaction, yii\db\cubrid\ColumnSchemaBuilder, yii\db\cubrid\QueryBuilder, yii\db\cubrid\Schema, yii\db\mssql\ColumnSchema, yii\db\mssql\ColumnSchemaBuilder, yii\db\mssql\QueryBuilder, yii\db\mssql\Schema, yii\db\mssql\TableSchema, yii\db\mysql\ColumnSchema, yii\db\mysql\ColumnSchemaBuilder, yii\db\mysql\QueryBuilder, yii\db\mysql\Schema, yii\db\oci\ColumnSchemaBuilder, yii\db\oci\Command, yii\db\oci\QueryBuilder, yii\db\oci\Schema, yii\db\pgsql\ColumnSchema, yii\db\pgsql\QueryBuilder, yii\db\pgsql\Schema, yii\db\sqlite\ColumnSchemaBuilder, yii\db\sqlite\Command, yii\db\sqlite\QueryBuilder, yii\db\sqlite\Schema, yii\db\sqlite\SqlTokenizer, yii\di\Container, yii\di\ServiceLocator, yii\filters\AccessControl, yii\filters\AccessRule, yii\filters\AjaxFilter, yii\filters\ContentNegotiator, yii\filters\Cors, yii\filters\HostControl, yii\filters\HttpCache, yii\filters\PageCache, yii\filters\RateLimiter, yii\filters\VerbFilter, yii\filters\auth\AuthMethod, yii\filters\auth\CompositeAuth, yii\filters\auth\HttpBasicAuth, yii\filters\auth\HttpBearerAuth, yii\filters\auth\HttpHeaderAuth, yii\filters\auth\QueryParamAuth, yii\grid\ActionColumn, yii\grid\CheckboxColumn, yii\grid\Column, yii\grid\DataColumn, yii\grid\GridView, yii\grid\GridViewAsset, yii\grid\RadioButtonColumn, yii\grid\SerialColumn, yii\i18n\DbMessageSource, yii\i18n\Formatter, yii\i18n\GettextFile, yii\i18n\GettextMessageSource, yii\i18n\GettextMoFile, yii\i18n\GettextPoFile, yii\i18n\I18N, yii\i18n\Locale, yii\i18n\MessageFormatter, yii\i18n\MessageSource, yii\i18n\MissingTranslationEvent, yii\i18n\PhpMessageSource, yii\log\DbTarget, yii\log\Dispatcher, yii\log\EmailTarget, yii\log\FileTarget, yii\log\Logger, yii\log\SyslogTarget, yii\log\Target, yii\mail\BaseMailer, yii\mail\BaseMessage, yii\mail\MailEvent, yii\mutex\DbMutex, yii\mutex\FileMutex, yii\mutex\Mutex, yii\mutex\MysqlMutex, yii\mutex\OracleMutex, yii\mutex\PgsqlMutex, yii\rbac\Assignment, yii\rbac\BaseManager, yii\rbac\DbManager, yii\rbac\Item, yii\rbac\Permission, yii\rbac\PhpManager, yii\rbac\Role, yii\rbac\Rule, yii\rest\Action, yii\rest\ActiveController, yii\rest\Controller, yii\rest\CreateAction, yii\rest\DeleteAction, yii\rest\IndexAction, yii\rest\OptionsAction, yii\rest\Serializer, yii\rest\UpdateAction, yii\rest\UrlRule, yii\rest\ViewAction, yii\test\ActiveFixture, yii\test\ArrayFixture, yii\test\BaseActiveFixture, yii\test\DbFixture, yii\test\Fixture, yii\test\InitDbFixture, yii\validators\BooleanValidator, yii\validators\CompareValidator, yii\validators\DateValidator, yii\validators\DefaultValueValidator, yii\validators\EachValidator, yii\validators\EmailValidator, yii\validators\ExistValidator, yii\validators\FileValidator, yii\validators\FilterValidator, yii\validators\ImageValidator, yii\validators\InlineValidator, yii\validators\IpValidator, yii\validators\NumberValidator, yii\validators\PunycodeAsset, yii\validators\RangeValidator, yii\validators\RegularExpressionValidator, yii\validators\RequiredValidator, yii\validators\SafeValidator, yii\validators\StringValidator, yii\validators\TrimValidator, yii\validators\UniqueValidator, yii\validators\UrlValidator, yii\validators\ValidationAsset, yii\validators\Validator, yii\web\Application, yii\web\AssetBundle, yii\web\AssetConverter, yii\web\AssetManager, yii\web\CacheSession, yii\web\CompositeUrlRule, yii\web\Controller, yii\web\Cookie, yii\web\CookieCollection, yii\web\DbSession, yii\web\ErrorAction, yii\web\ErrorHandler, yii\web\GroupUrlRule, yii\web\HeaderCollection, yii\web\HtmlResponseFormatter, yii\web\JqueryAsset, yii\web\JsExpression, yii\web\JsonResponseFormatter, yii\web\Link, yii\web\MultiFieldSession, yii\web\MultipartFormDataParser, yii\web\Request, yii\web\Response, yii\web\Session, yii\web\UploadedFile, yii\web\UrlManager, yii\web\UrlNormalizer, yii\web\UrlRule, yii\web\User, yii\web\UserEvent, yii\web\View, yii\web\ViewAction, yii\web\XmlResponseFormatter, yii\web\YiiAsset, yii\widgets\ActiveField, yii\widgets\ActiveForm, yii\widgets\ActiveFormAsset, yii\widgets\BaseListView, yii\widgets\Block, yii\widgets\Breadcrumbs, yii\widgets\ContentDecorator, yii\widgets\DetailView, yii\widgets\FragmentCache, yii\widgets\InputWidget, yii\widgets\LinkPager, yii\widgets\LinkSorter, yii\widgets\ListView, yii\widgets\MaskedInput, yii\widgets\MaskedInputAsset, yii\widgets\Menu, yii\widgets\Pjax, yii\widgets\PjaxAsset, yii\widgets\Spaceless
Available since version2.0.13
Source Code https://github.com/yiisoft/yii2/blob/master/framework/base/BaseObject.php

BaseObject is the base class that implements the property feature.

A property is defined by a getter method (e.g. getLabel), and/or a setter method (e.g. setLabel). For example, the following getter and setter methods define a property named label:

private $_label;

public function getLabel()
{
    return $this->_label;
}

public function setLabel($value)
{
    $this->_label = $value;
}

Property names are case-insensitive.

A property can be accessed like a member variable of an object. Reading or writing a property will cause the invocation of the corresponding getter or setter method. For example,

// equivalent to $label = $object->getLabel();
$label = $object->label;
// equivalent to $object->setLabel('abc');
$object->label = 'abc';

If a property has only a getter method and has no setter method, it is considered as read-only. In this case, trying to modify the property value will cause an exception.

One can call hasProperty(), canGetProperty() and/or canSetProperty() to check the existence of a property.

Besides the property feature, BaseObject also introduces an important object initialization life cycle. In particular, creating an new instance of BaseObject or its derived class will involve the following life cycles sequentially:

  1. the class constructor is invoked;
  2. object properties are initialized according to the given configuration;
  3. the init() method is invoked.

In the above, both Step 2 and 3 occur at the end of the class constructor. It is recommended that you perform object initialization in the init() method because at that stage, the object configuration is already applied.

In order to ensure the above life cycles, if a child class of BaseObject needs to override the constructor, it should be done like the following:

public function __construct($param1, $param2, ..., $config = [])
{
    ...
    parent::__construct($config);
}

That is, a $config parameter (defaults to []) should be declared as the last parameter of the constructor, and the parent implementation should be called at the end of the constructor.

Public Methods

Hide inherited methods

Method Description Defined By
__call() Calls the named method which is not a class method. yii\base\BaseObject
__construct() Constructor. yii\base\BaseObject
__get() Returns the value of an object property. yii\base\BaseObject
__isset() Checks if a property is set, i.e. defined and not null. yii\base\BaseObject
__set() Sets value of an object property. yii\base\BaseObject
__unset() Sets an object property to null. yii\base\BaseObject
canGetProperty() Returns a value indicating whether a property can be read. yii\base\BaseObject
canSetProperty() Returns a value indicating whether a property can be set. yii\base\BaseObject
className() Returns the fully qualified name of this class. yii\base\BaseObject
hasMethod() Returns a value indicating whether a method is defined. yii\base\BaseObject
hasProperty() Returns a value indicating whether a property is defined. yii\base\BaseObject
init() Initializes the object. yii\base\BaseObject

Method Details

Hide inherited methods

__call() public method

Calls the named method which is not a class method.

Do not call this method directly as it is a PHP magic method that will be implicitly called when an unknown method is being invoked.

public mixed __call ( $name, $params )
$name string

The method name

$params array

Method parameters

return mixed

The method return value

throws yii\base\UnknownMethodException

when calling unknown method

                public function __call($name, $params)
{
    throw new UnknownMethodException('Calling unknown method: ' . get_class($this) . "::$name()");
}

            
__construct() public method

Constructor.

The default implementation does two things:

  • Initializes the object with the given configuration $config.
  • Call init().

If this method is overridden in a child class, it is recommended that

  • the last parameter of the constructor is a configuration array, like $config here.
  • call the parent implementation at the end of the constructor.
public void __construct ( $config = [] )
$config array

Name-value pairs that will be used to initialize the object properties

                public function __construct($config = [])
{
    if (!empty($config)) {
        Yii::configure($this, $config);
    }
    $this->init();
}

            
__get() public method

Returns the value of an object property.

Do not call this method directly as it is a PHP magic method that will be implicitly called when executing $value = $object->property;.

See also __set().

public mixed __get ( $name )
$name string

The property name

return mixed

The property value

throws yii\base\UnknownPropertyException

if the property is not defined

throws yii\base\InvalidCallException

if the property is write-only

                public function __get($name)
{
    $getter = 'get' . $name;
    if (method_exists($this, $getter)) {
        return $this->$getter();
    } elseif (method_exists($this, 'set' . $name)) {
        throw new InvalidCallException('Getting write-only property: ' . get_class($this) . '::' . $name);
    }
    throw new UnknownPropertyException('Getting unknown property: ' . get_class($this) . '::' . $name);
}

            
__isset() public method

Checks if a property is set, i.e. defined and not null.

Do not call this method directly as it is a PHP magic method that will be implicitly called when executing isset($object->property).

Note that if the property is not defined, false will be returned.

See also https://www.php.net/manual/en/function.isset.php.

public boolean __isset ( $name )
$name string

The property name or the event name

return boolean

Whether the named property is set (not null).

                public function __isset($name)
{
    $getter = 'get' . $name;
    if (method_exists($this, $getter)) {
        return $this->$getter() !== null;
    }
    return false;
}

            
__set() public method

Sets value of an object property.

Do not call this method directly as it is a PHP magic method that will be implicitly called when executing $object->property = $value;.

See also __get().

public void __set ( $name, $value )
$name string

The property name or the event name

$value mixed

The property value

throws yii\base\UnknownPropertyException

if the property is not defined

throws yii\base\InvalidCallException

if the property is read-only

                public function __set($name, $value)
{
    $setter = 'set' . $name;
    if (method_exists($this, $setter)) {
        $this->$setter($value);
    } elseif (method_exists($this, 'get' . $name)) {
        throw new InvalidCallException('Setting read-only property: ' . get_class($this) . '::' . $name);
    } else {
        throw new UnknownPropertyException('Setting unknown property: ' . get_class($this) . '::' . $name);
    }
}

            
__unset() public method

Sets an object property to null.

Do not call this method directly as it is a PHP magic method that will be implicitly called when executing unset($object->property).

Note that if the property is not defined, this method will do nothing. If the property is read-only, it will throw an exception.

See also https://www.php.net/manual/en/function.unset.php.

public void __unset ( $name )
$name string

The property name

throws yii\base\InvalidCallException

if the property is read only.

                public function __unset($name)
{
    $setter = 'set' . $name;
    if (method_exists($this, $setter)) {
        $this->$setter(null);
    } elseif (method_exists($this, 'get' . $name)) {
        throw new InvalidCallException('Unsetting read-only property: ' . get_class($this) . '::' . $name);
    }
}

            
canGetProperty() public method

Returns a value indicating whether a property can be read.

A property is readable if:

  • the class has a getter method associated with the specified name (in this case, property name is case-insensitive);
  • the class has a member variable with the specified name (when $checkVars is true);

See also canSetProperty().

public boolean canGetProperty ( $name, $checkVars true )
$name string

The property name

$checkVars boolean

Whether to treat member variables as properties

return boolean

Whether the property can be read

                public function canGetProperty($name, $checkVars = true)
{
    return method_exists($this, 'get' . $name) || $checkVars && property_exists($this, $name);
}

            
canSetProperty() public method

Returns a value indicating whether a property can be set.

A property is writable if:

  • the class has a setter method associated with the specified name (in this case, property name is case-insensitive);
  • the class has a member variable with the specified name (when $checkVars is true);

See also canGetProperty().

public boolean canSetProperty ( $name, $checkVars true )
$name string

The property name

$checkVars boolean

Whether to treat member variables as properties

return boolean

Whether the property can be written

                public function canSetProperty($name, $checkVars = true)
{
    return method_exists($this, 'set' . $name) || $checkVars && property_exists($this, $name);
}

            
className() public static method
Deprecated since 2.0.14. On PHP >=5.5, use ::class instead.

Returns the fully qualified name of this class.

public static string className ( )
return string

The fully qualified name of this class.

                public static function className()
{
    return get_called_class();
}

            
hasMethod() public method

Returns a value indicating whether a method is defined.

The default implementation is a call to php function method_exists(). You may override this method when you implemented the php magic method __call().

public boolean hasMethod ( $name )
$name string

The method name

return boolean

Whether the method is defined

                public function hasMethod($name)
{
    return method_exists($this, $name);
}

            
hasProperty() public method

Returns a value indicating whether a property is defined.

A property is defined if:

  • the class has a getter or setter method associated with the specified name (in this case, property name is case-insensitive);
  • the class has a member variable with the specified name (when $checkVars is true);

See also:

public boolean hasProperty ( $name, $checkVars true )
$name string

The property name

$checkVars boolean

Whether to treat member variables as properties

return boolean

Whether the property is defined

                public function hasProperty($name, $checkVars = true)
{
    return $this->canGetProperty($name, $checkVars) || $this->canSetProperty($name, false);
}

            
init() public method

Initializes the object.

This method is invoked at the end of the constructor after the object is initialized with the given configuration.

public void init ( )

                public function init()
{
}