Trait yii\base\ArrayableTrait

Implemented byapp\models\BlueForm, app\models\FinalForm, app\models\GreenForm, app\models\Step1Form, app\models\WelcomeForm, backend\models\Settings, common\models\FirstAccessForm, common\models\ForgotPasswordForm, common\models\ItaliaComuni, common\models\ItaliaProvince, common\models\ItaliaRegioni, common\models\LoginForm, common\models\User, frontend\models\ContactForm, frontend\models\PasswordResetRequestForm, frontend\models\ResetPasswordForm, frontend\models\SignupForm, lispa\amos\admin\models\CambiaPasswordForm, lispa\amos\admin\models\DropAccountForm, lispa\amos\admin\models\ForgotPasswordForm, lispa\amos\admin\models\LoginForm, lispa\amos\admin\models\ProfileReactivationForm, lispa\amos\admin\models\RegisterForm, lispa\amos\admin\models\UserContact, lispa\amos\admin\models\UserLockout, lispa\amos\admin\models\UserProfile, lispa\amos\admin\models\UserProfileAgeGroup, lispa\amos\admin\models\UserProfileArea, lispa\amos\admin\models\UserProfileReactivationRequest, lispa\amos\admin\models\UserProfileRole, lispa\amos\admin\models\UserProfileStatiCivili, lispa\amos\admin\models\UserProfileTitoliStudio, lispa\amos\admin\models\base\UserContact, lispa\amos\admin\models\base\UserProfile, lispa\amos\admin\models\base\UserProfileAgeGroup, lispa\amos\admin\models\base\UserProfileArea, lispa\amos\admin\models\base\UserProfileReactivationRequest, lispa\amos\admin\models\base\UserProfileRole, lispa\amos\admin\models\base\UserProfileStatiCivili, lispa\amos\admin\models\base\UserProfileTitoliStudio, lispa\amos\admin\models\search\UserContactSearch, lispa\amos\admin\models\search\UserProfileAgeGroupSearch, lispa\amos\admin\models\search\UserProfileAreaSearch, lispa\amos\admin\models\search\UserProfileRoleSearch, lispa\amos\admin\models\search\UserProfileSearch, lispa\amos\attachments\components\FileActiveRecord, lispa\amos\attachments\models\File, lispa\amos\attachments\models\FileRefs, lispa\amos\attachments\models\UploadForm, lispa\amos\chat\DataProvider, lispa\amos\chat\ModelDataProvider, lispa\amos\chat\models\Conversation, lispa\amos\chat\models\Message, lispa\amos\chat\models\User, lispa\amos\chat\models\base\Conversation, lispa\amos\chat\models\base\Message, lispa\amos\chat\models\base\User, lispa\amos\chat\models\search\UserContactsQuery, lispa\amos\comments\models\Comment, lispa\amos\comments\models\CommentContextAttribute, lispa\amos\comments\models\CommentReply, lispa\amos\comments\models\base\Comment, lispa\amos\comments\models\base\CommentContextAttribute, lispa\amos\comments\models\base\CommentReply, lispa\amos\comments\models\search\CommentReplySearch, lispa\amos\comments\models\search\CommentSearch, lispa\amos\community\models\Community, lispa\amos\community\models\CommunityReport, lispa\amos\community\models\CommunityType, lispa\amos\community\models\CommunityUserMm, lispa\amos\community\models\RegisterForm, lispa\amos\community\models\base\Community, lispa\amos\community\models\base\CommunityType, lispa\amos\community\models\base\CommunityUserMm, lispa\amos\community\models\search\CommunitySearch, lispa\amos\community\models\search\CommunityUserMmSearch, lispa\amos\comuni\models\IstatCittaMetropolitane, lispa\amos\comuni\models\IstatComuni, lispa\amos\comuni\models\IstatComuniCap, lispa\amos\comuni\models\IstatContinenti, lispa\amos\comuni\models\IstatNazioni, lispa\amos\comuni\models\IstatProvince, lispa\amos\comuni\models\IstatRegioni, lispa\amos\comuni\models\IstatUnioneDeiComuni, lispa\amos\comuni\models\base\IstatCittaMetropolitane, lispa\amos\comuni\models\base\IstatComuni, lispa\amos\comuni\models\base\IstatComuniCap, lispa\amos\comuni\models\base\IstatContinenti, lispa\amos\comuni\models\base\IstatNazioni, lispa\amos\comuni\models\base\IstatProvince, lispa\amos\comuni\models\base\IstatRegioni, lispa\amos\comuni\models\base\IstatUnioneDeiComuni, lispa\amos\comuni\models\search\IstatCittaMetropolitaneSearch, lispa\amos\comuni\models\search\IstatComuniSearch, lispa\amos\comuni\models\search\IstatContinentiSearch, lispa\amos\comuni\models\search\IstatNazioniSearch, lispa\amos\comuni\models\search\IstatProvinceSearch, lispa\amos\comuni\models\search\IstatRegioniSearch, lispa\amos\comuni\models\search\IstatUnioneDeiComuniSearch, lispa\amos\core\forms\EmailForm, lispa\amos\core\forms\FirstAccessForm, lispa\amos\core\giiamos\model\Generator, lispa\amos\core\giiamos\widgets\Generator, lispa\amos\core\record\AmosRecordAudit, lispa\amos\core\record\CmsField, lispa\amos\core\record\ContentModel, lispa\amos\core\record\NetworkModel, lispa\amos\core\record\Record, lispa\amos\core\record\SearchResult, lispa\amos\core\user\User, lispa\amos\cwh\base\ModelConfig, lispa\amos\cwh\models\CwhAuthAssignment, lispa\amos\cwh\models\CwhConfig, lispa\amos\cwh\models\CwhConfigContents, lispa\amos\cwh\models\CwhNodi, lispa\amos\cwh\models\CwhPubblicazioni, lispa\amos\cwh\models\CwhPubblicazioniCwhNodiEditoriMm, lispa\amos\cwh\models\CwhPubblicazioniCwhNodiValidatoriMm, lispa\amos\cwh\models\CwhRegolePubblicazione, lispa\amos\cwh\models\CwhTagInterestMm, lispa\amos\cwh\models\CwhTagOwnerInterestMm, lispa\amos\cwh\models\base\CwhAuthAssignment, lispa\amos\cwh\models\base\CwhConfig, lispa\amos\cwh\models\base\CwhConfigContents, lispa\amos\cwh\models\base\CwhNodi, lispa\amos\cwh\models\base\CwhNodiView, lispa\amos\cwh\models\base\CwhPubblicazioni, lispa\amos\cwh\models\base\CwhPubblicazioniCwhNodiEditoriMm, lispa\amos\cwh\models\base\CwhPubblicazioniCwhNodiValidatoriMm, lispa\amos\cwh\models\base\CwhRegolePubblicazione, lispa\amos\cwh\models\base\CwhTagInterestMm, lispa\amos\cwh\models\base\CwhTagOwnerInterestMm, lispa\amos\cwh\models\search\CwhAuthAssignmentSearch, lispa\amos\cwh\models\search\CwhConfigSearch, lispa\amos\cwh\models\search\CwhNodiSearch, lispa\amos\cwh\models\search\CwhPubblicazioniSearch, lispa\amos\cwh\models\search\CwhRegolePubblicazioneSearch, lispa\amos\dashboard\models\AmosUserDashboards, lispa\amos\dashboard\models\AmosUserDashboardsWidgetMm, lispa\amos\dashboard\models\AmosWidgets, lispa\amos\dashboard\models\base\AmosUserDashboards, lispa\amos\dashboard\models\base\AmosUserDashboardsWidgetMm, lispa\amos\dashboard\models\base\AmosWidgets, lispa\amos\dashboard\models\search\AmosUserDashboardsSearch, lispa\amos\dashboard\models\search\AmosWidgetsSearch, lispa\amos\discussioni\models\DiscussioniCommenti, lispa\amos\discussioni\models\DiscussioniRisposte, lispa\amos\discussioni\models\DiscussioniTopic, lispa\amos\discussioni\models\base\DiscussioniCommenti, lispa\amos\discussioni\models\base\DiscussioniRisposte, lispa\amos\discussioni\models\base\DiscussioniTopic, lispa\amos\discussioni\models\search\DiscussioniCommentiSearch, lispa\amos\discussioni\models\search\DiscussioniRisposteSearch, lispa\amos\discussioni\models\search\DiscussioniTopicSearch, lispa\amos\documenti\models\Documenti, lispa\amos\documenti\models\DocumentiCategorie, lispa\amos\documenti\models\base\Documenti, lispa\amos\documenti\models\base\DocumentiCategorie, lispa\amos\documenti\models\search\DocumentiCategorieSearch, lispa\amos\documenti\models\search\DocumentiSearch, lispa\amos\een\commands\models\CollaborationProposalEen, lispa\amos\een\commands\models\TagEen, lispa\amos\een\models\EenExprOfInterest, lispa\amos\een\models\EenExprOfInterestHistory, lispa\amos\een\models\EenNetworkNode, lispa\amos\een\models\EenPartnershipProposal, lispa\amos\een\models\EenStaff, lispa\amos\een\models\InfoReqModel, lispa\amos\een\models\base\EenExprOfInterest, lispa\amos\een\models\base\EenExprOfInterestHistory, lispa\amos\een\models\base\EenNetworkNode, lispa\amos\een\models\base\EenPartnershipProposal, lispa\amos\een\models\base\EenStaff, lispa\amos\een\models\search\EenExprOfInterestSearch, lispa\amos\een\models\search\EenPartnershipProposalSearch, lispa\amos\emailmanager\models\EmailSpool, lispa\amos\emailmanager\models\EmailTemplate, lispa\amos\emailmanager\models\search\EmailSpoolSearch, lispa\amos\emailmanager\models\search\EmailTemplateSearch, lispa\amos\events\models\Event, lispa\amos\events\models\EventLengthMeasurementUnit, lispa\amos\events\models\EventMembershipType, lispa\amos\events\models\EventType, lispa\amos\events\models\EventTypeContext, lispa\amos\events\models\base\Event, lispa\amos\events\models\base\EventLengthMeasurementUnit, lispa\amos\events\models\base\EventMembershipType, lispa\amos\events\models\base\EventType, lispa\amos\events\models\base\EventTypeContext, lispa\amos\events\models\search\EventSearch, lispa\amos\events\models\search\EventTypeSearch, lispa\amos\faq\models\Faq, lispa\amos\faq\models\FaqAmosWidgetMm, lispa\amos\faq\models\FaqCategories, lispa\amos\faq\models\FaqCategoriesSearch, lispa\amos\faq\models\FaqSearch, lispa\amos\faq\models\FaqStato, lispa\amos\faq\models\FaqStatoSearch, lispa\amos\faq\models\base\Faq, lispa\amos\faq\models\base\FaqAmosWidgetMm, lispa\amos\faq\models\base\FaqCategories, lispa\amos\faq\models\base\FaqStato, lispa\amos\inforeq\models\Inforeq, lispa\amos\inforeq\models\InforeqArgomenti, lispa\amos\inforeq\models\base\Inforeq, lispa\amos\inforeq\models\base\InforeqArgomenti, lispa\amos\inforeq\models\search\InforeqArgomentiSearch, lispa\amos\inforeq\models\search\InforeqSearch, lispa\amos\invitations\models\Invitation, lispa\amos\invitations\models\InvitationUser, lispa\amos\invitations\models\base\Invitation, lispa\amos\invitations\models\base\InvitationUser, lispa\amos\invitations\models\search\InvitationSearch, lispa\amos\mobile\bridge\modules\v1\models\AccessTokens, lispa\amos\mobile\bridge\modules\v1\models\ChatMessages, lispa\amos\mobile\bridge\modules\v1\models\User, lispa\amos\mobile\bridge\modules\v1\models\base\AccessTokens, lispa\amos\myactivities\basic\CommunityToValidate, lispa\amos\myactivities\basic\DiscussionToValidate, lispa\amos\myactivities\basic\DocumentToValidate, lispa\amos\myactivities\basic\ExpressionOfInterestToEvaluate, lispa\amos\myactivities\basic\NewsToValidate, lispa\amos\myactivities\basic\PartnershipProfileToValidate, lispa\amos\myactivities\basic\ReportToRead, lispa\amos\myactivities\basic\RequestToParticipateCommunity, lispa\amos\myactivities\basic\RequestToParticipateCommunityForManager, lispa\amos\myactivities\basic\SurveyToValidate, lispa\amos\myactivities\basic\UserProfileActivationRequest, lispa\amos\myactivities\basic\UserProfileToValidate, lispa\amos\myactivities\basic\WaitingContacts, lispa\amos\myactivities\models\MyActivities, lispa\amos\myactivities\models\search\MyActivitiesModelSearch, lispa\amos\news\models\News, lispa\amos\news\models\NewsCategorie, lispa\amos\news\models\NewsCategoryRolesMm, lispa\amos\news\models\base\News, lispa\amos\news\models\base\NewsCategorie, lispa\amos\news\models\base\NewsCategoryRolesMm, lispa\amos\news\models\search\NewsCategorieSearch, lispa\amos\news\models\search\NewsSearch, lispa\amos\notificationmanager\models\Notification, lispa\amos\notificationmanager\models\NotificationConf, lispa\amos\notificationmanager\models\NotificationsRead, lispa\amos\notificationmanager\record\NotifyAuditRecord, lispa\amos\notificationmanager\record\NotifyRecord, lispa\amos\organizzazioni\models\OrganizationsPlaces, lispa\amos\organizzazioni\models\Profilo, lispa\amos\organizzazioni\models\ProfiloLegalForm, lispa\amos\organizzazioni\models\ProfiloTypesPmi, lispa\amos\organizzazioni\models\ProfiloUserMm, lispa\amos\organizzazioni\models\base\OrganizationsPlaces, lispa\amos\organizzazioni\models\base\Profilo, lispa\amos\organizzazioni\models\base\ProfiloLegalForm, lispa\amos\organizzazioni\models\base\ProfiloTypesPmi, lispa\amos\organizzazioni\models\base\ProfiloUserMm, lispa\amos\organizzazioni\models\search\ProfiloSearch, lispa\amos\partnershipprofiles\models\DevelopmentStage, lispa\amos\partnershipprofiles\models\ExpressionsOfInterest, lispa\amos\partnershipprofiles\models\IntellectualProperty, lispa\amos\partnershipprofiles\models\PartnershipProfiles, lispa\amos\partnershipprofiles\models\PartnershipProfilesCountriesMm, lispa\amos\partnershipprofiles\models\PartnershipProfilesType, lispa\amos\partnershipprofiles\models\PartnershipProfilesTypesMm, lispa\amos\partnershipprofiles\models\WorkLanguage, lispa\amos\partnershipprofiles\models\base\DevelopmentStage, lispa\amos\partnershipprofiles\models\base\ExpressionsOfInterest, lispa\amos\partnershipprofiles\models\base\IntellectualProperty, lispa\amos\partnershipprofiles\models\base\PartnershipProfiles, lispa\amos\partnershipprofiles\models\base\PartnershipProfilesCountriesMm, lispa\amos\partnershipprofiles\models\base\PartnershipProfilesType, lispa\amos\partnershipprofiles\models\base\PartnershipProfilesTypesMm, lispa\amos\partnershipprofiles\models\base\WorkLanguage, lispa\amos\partnershipprofiles\models\search\DevelopmentStageSearch, lispa\amos\partnershipprofiles\models\search\ExpressionsOfInterestSearch, lispa\amos\partnershipprofiles\models\search\IntellectualPropertySearch, lispa\amos\partnershipprofiles\models\search\PartnershipProfilesSearch, lispa\amos\partnershipprofiles\models\search\PartnershipProfilesTypeSearch, lispa\amos\partnershipprofiles\models\search\WorkLanguageSearch, lispa\amos\privileges\models\Privilege, lispa\amos\projectmanagement\models\MembershipType, lispa\amos\projectmanagement\models\Projects, lispa\amos\projectmanagement\models\ProjectsActivities, lispa\amos\projectmanagement\models\ProjectsActivitiesOrganizationMm, lispa\amos\projectmanagement\models\ProjectsActivitiesProjectsMm, lispa\amos\projectmanagement\models\ProjectsAtModifyRequestMm, lispa\amos\projectmanagement\models\ProjectsCustomSpendingVoices, lispa\amos\projectmanagement\models\ProjectsJoinedOrganizationsMm, lispa\amos\projectmanagement\models\ProjectsMeasure, lispa\amos\projectmanagement\models\ProjectsModifyRequest, lispa\amos\projectmanagement\models\ProjectsOrganizationMm, lispa\amos\projectmanagement\models\ProjectsProgressCosts, lispa\amos\projectmanagement\models\ProjectsProgressCostsType, lispa\amos\projectmanagement\models\ProjectsProgressDetectionPeriod, lispa\amos\projectmanagement\models\ProjectsProgressDetectionType, lispa\amos\projectmanagement\models\ProjectsProgressStatements, lispa\amos\projectmanagement\models\ProjectsProgressStatementsType, lispa\amos\projectmanagement\models\ProjectsProjectsMeasureMm, lispa\amos\projectmanagement\models\ProjectsProjectsStatesMm, lispa\amos\projectmanagement\models\ProjectsRoles, lispa\amos\projectmanagement\models\ProjectsSpendingVoices, lispa\amos\projectmanagement\models\ProjectsStates, lispa\amos\projectmanagement\models\ProjectsTaskStatuses, lispa\amos\projectmanagement\models\ProjectsTasks, lispa\amos\projectmanagement\models\ProjectsTasksCosts, lispa\amos\projectmanagement\models\ProjectsTasksJoinedOrganizationsMm, lispa\amos\projectmanagement\models\ProjectsTasksOrganizationMm, lispa\amos\projectmanagement\models\ProjectsTasksProjectsActivitiesMm, lispa\amos\projectmanagement\models\ProjectsTasksProjectsTaskStatusesMm, lispa\amos\projectmanagement\models\ProjectsTasksTasksMm, lispa\amos\projectmanagement\models\ProjectsUserMm, lispa\amos\projectmanagement\models\base\MembershipType, lispa\amos\projectmanagement\models\base\Projects, lispa\amos\projectmanagement\models\base\ProjectsActivities, lispa\amos\projectmanagement\models\base\ProjectsActivitiesOrganizationMm, lispa\amos\projectmanagement\models\base\ProjectsActivitiesProjectsMm, lispa\amos\projectmanagement\models\base\ProjectsAtModifyRequestMm, lispa\amos\projectmanagement\models\base\ProjectsCustomSpendingVoices, lispa\amos\projectmanagement\models\base\ProjectsJoinedOrganizationsMm, lispa\amos\projectmanagement\models\base\ProjectsMeasure, lispa\amos\projectmanagement\models\base\ProjectsModifyRequest, lispa\amos\projectmanagement\models\base\ProjectsOrganizationMm, lispa\amos\projectmanagement\models\base\ProjectsProgressCosts, lispa\amos\projectmanagement\models\base\ProjectsProgressCostsType, lispa\amos\projectmanagement\models\base\ProjectsProgressDetectionPeriod, lispa\amos\projectmanagement\models\base\ProjectsProgressDetectionType, lispa\amos\projectmanagement\models\base\ProjectsProgressStatements, lispa\amos\projectmanagement\models\base\ProjectsProgressStatementsType, lispa\amos\projectmanagement\models\base\ProjectsProjectsMeasureMm, lispa\amos\projectmanagement\models\base\ProjectsProjectsStatesMm, lispa\amos\projectmanagement\models\base\ProjectsRoles, lispa\amos\projectmanagement\models\base\ProjectsSpendingVoices, lispa\amos\projectmanagement\models\base\ProjectsStates, lispa\amos\projectmanagement\models\base\ProjectsTaskStatuses, lispa\amos\projectmanagement\models\base\ProjectsTasks, lispa\amos\projectmanagement\models\base\ProjectsTasksCosts, lispa\amos\projectmanagement\models\base\ProjectsTasksJoinedOrganizationsMm, lispa\amos\projectmanagement\models\base\ProjectsTasksOrganizationMm, lispa\amos\projectmanagement\models\base\ProjectsTasksProjectsActivitiesMm, lispa\amos\projectmanagement\models\base\ProjectsTasksProjectsTaskStatusesMm, lispa\amos\projectmanagement\models\base\ProjectsTasksTasksMm, lispa\amos\projectmanagement\models\base\ProjectsUserMm, lispa\amos\projectmanagement\models\new_project_wizard\StepA, lispa\amos\projectmanagement\models\new_project_wizard\StepB, lispa\amos\projectmanagement\models\new_project_wizard\StepC, lispa\amos\projectmanagement\models\new_project_wizard\StepD, lispa\amos\projectmanagement\models\search\OrganizationsSearch, lispa\amos\projectmanagement\models\search\ProjectsActivitiesSearch, lispa\amos\projectmanagement\models\search\ProjectsCustomCostItemsSearch, lispa\amos\projectmanagement\models\search\ProjectsMeasureSearch, lispa\amos\projectmanagement\models\search\ProjectsModifyRequestSearch, lispa\amos\projectmanagement\models\search\ProjectsProgressCostsSearch, lispa\amos\projectmanagement\models\search\ProjectsProgressDetectionPeriodSearch, lispa\amos\projectmanagement\models\search\ProjectsProgressStatementsSearch, lispa\amos\projectmanagement\models\search\ProjectsSearch, lispa\amos\projectmanagement\models\search\ProjectsStatesSearch, lispa\amos\projectmanagement\models\search\ProjectsTaskStatusesSearch, lispa\amos\projectmanagement\models\search\ProjectsTasksSearch, lispa\amos\report\models\Report, lispa\amos\report\models\ReportType, lispa\amos\report\models\base\Report, lispa\amos\report\models\base\ReportType, lispa\amos\report\models\search\ReportSearch, lispa\amos\risultati\models\BisognoPerSviluppoRisultati, lispa\amos\risultati\models\ProtezioneInnovazioneRisultati, lispa\amos\risultati\models\Risultati, lispa\amos\risultati\models\RisultatiBisognoPerSviluppoRisultatiMm, lispa\amos\risultati\models\RisultatiInnovazionePrevalente, lispa\amos\risultati\models\RisultatiProtezioneInnovazioneRisultatiMm, lispa\amos\risultati\models\RisultatiStadioSviluppoRisultatiMm, lispa\amos\risultati\models\RisultatiTecnologieRisultatiMm, lispa\amos\risultati\models\StadioSviluppoRisultati, lispa\amos\risultati\models\TecnologieRisultati, lispa\amos\risultati\models\base\BisognoPerSviluppoRisultati, lispa\amos\risultati\models\base\ProtezioneInnovazioneRisultati, lispa\amos\risultati\models\base\Risultati, lispa\amos\risultati\models\base\RisultatiBisognoPerSviluppoRisultatiMm, lispa\amos\risultati\models\base\RisultatiInnovazionePrevalente, lispa\amos\risultati\models\base\RisultatiProtezioneInnovazioneRisultatiMm, lispa\amos\risultati\models\base\RisultatiStadioSviluppoRisultatiMm, lispa\amos\risultati\models\base\RisultatiTecnologieRisultatiMm, lispa\amos\risultati\models\base\StadioSviluppoRisultati, lispa\amos\risultati\models\base\TecnologieRisultati, lispa\amos\risultati\models\search\BisognoPerSviluppoRisultatiSearch, lispa\amos\risultati\models\search\ProtezioneInnovazioneRisultatiSearch, lispa\amos\risultati\models\search\RisultatiSearch, lispa\amos\risultati\models\search\StadioSviluppoRisultatiSearch, lispa\amos\risultati\models\search\TecnologieRisultatiSearch, lispa\amos\seo\models\SeoData, lispa\amos\seo\models\base\SeoData, lispa\amos\slideshow\models\Slideshow, lispa\amos\slideshow\models\SlideshowPage, lispa\amos\slideshow\models\SlideshowRoute, lispa\amos\slideshow\models\SlideshowUserflag, lispa\amos\slideshow\models\base\Slideshow, lispa\amos\slideshow\models\base\SlideshowPage, lispa\amos\slideshow\models\base\SlideshowRoute, lispa\amos\slideshow\models\base\SlideshowUserflag, lispa\amos\slideshow\models\search\SlideshowPageSearch, lispa\amos\slideshow\models\search\SlideshowRouteSearch, lispa\amos\slideshow\models\search\SlideshowSearch, lispa\amos\socialauth\models\SocialAuthServices, lispa\amos\socialauth\models\SocialAuthUsers, lispa\amos\sondaggi\models\GeneratoreSondaggio, lispa\amos\sondaggi\models\Risposte, lispa\amos\sondaggi\models\Sondaggi, lispa\amos\sondaggi\models\SondaggiDomande, lispa\amos\sondaggi\models\SondaggiDomandeCondizionate, lispa\amos\sondaggi\models\SondaggiDomandePagine, lispa\amos\sondaggi\models\SondaggiDomandeTipologie, lispa\amos\sondaggi\models\SondaggiPubblicazione, lispa\amos\sondaggi\models\SondaggiRisposte, lispa\amos\sondaggi\models\SondaggiRispostePredefinite, lispa\amos\sondaggi\models\SondaggiRisposteSessioni, lispa\amos\sondaggi\models\SondaggiStato, lispa\amos\sondaggi\models\base\Sondaggi, lispa\amos\sondaggi\models\base\SondaggiDomande, lispa\amos\sondaggi\models\base\SondaggiDomandeCondizionate, lispa\amos\sondaggi\models\base\SondaggiDomandePagine, lispa\amos\sondaggi\models\base\SondaggiDomandeTipologie, lispa\amos\sondaggi\models\base\SondaggiPubblicazione, lispa\amos\sondaggi\models\base\SondaggiRisposte, lispa\amos\sondaggi\models\base\SondaggiRispostePredefinite, lispa\amos\sondaggi\models\base\SondaggiRisposteSessioni, lispa\amos\sondaggi\models\base\SondaggiStato, lispa\amos\sondaggi\models\search\SondaggiDomandePagineSearch, lispa\amos\sondaggi\models\search\SondaggiDomandeSearch, lispa\amos\sondaggi\models\search\SondaggiDomandeTipologieSearch, lispa\amos\sondaggi\models\search\SondaggiRispostePredefiniteSearch, lispa\amos\sondaggi\models\search\SondaggiRisposteSearch, lispa\amos\sondaggi\models\search\SondaggiRisposteSessioniSearch, lispa\amos\sondaggi\models\search\SondaggiSearch, lispa\amos\tag\models\EntitysTagsMm, lispa\amos\tag\models\TagModelsAuthItemsMm, lispa\amos\tag\models\base\BaseEntitysTagsMm, lispa\amos\tag\models\base\TagModelsAuthItemsMm, lispa\amos\translation\bootstrap\EventActiveRecordBootstrap, lispa\amos\translation\components\Generator, lispa\amos\translation\models\LanguageTranslateUserFields, lispa\amos\translation\models\TranslationConf, lispa\amos\translation\models\TranslationUserLanguageMm, lispa\amos\translation\models\TranslationUserPreference, lispa\amos\upload\models\FilemanagerMediafile, lispa\amos\videoconference\models\Videoconf, lispa\amos\videoconference\models\VideoconfSearch, lispa\amos\videoconference\models\VideoconfUsersMm, lispa\amos\videoconference\models\base\UserProfileForm, lispa\amos\videoconference\models\base\Videoconf, lispa\amos\videoconference\models\base\VideoconfUsersMm, lispa\amos\workflow\models\WorkflowTransitionsLog, lispa\amos\workflow\models\base\WorkflowTransitionsLog, pendalf89\filemanager\models\Mediafile, pendalf89\filemanager\models\MediafileSearch, pendalf89\filemanager\models\Owners, pendalf89\filemanager\models\Tag, yii\base\DynamicModel, yii\base\Model, yii\db\ActiveRecord, yii\db\BaseActiveRecord, yii\debug\models\Router, yii\debug\models\UserSwitch, yii\debug\models\search\Base, yii\debug\models\search\Db, yii\debug\models\search\Debug, yii\debug\models\search\Log, yii\debug\models\search\Mail, yii\debug\models\search\Profile, yii\debug\models\search\User, yii\debug\models\timeline\Search, yii\gii\Generator, yii\gii\generators\controller\Generator, yii\gii\generators\crud\Generator, yii\gii\generators\extension\Generator, yii\gii\generators\form\Generator, yii\gii\generators\model\Generator, yii\gii\generators\module\Generator, yii\httpclient\debug\SearchModel
Available since version2.0
Source Code https://github.com/yiisoft/yii2/blob/master/framework/base/ArrayableTrait.php

ArrayableTrait provides a common implementation of the yii\base\Arrayable interface.

ArrayableTrait implements toArray() by respecting the field definitions as declared in fields() and extraFields().

Public Methods

Hide inherited methods

MethodDescriptionDefined By
extraFields() Returns the list of fields that can be expanded further and returned by toArray(). yii\base\ArrayableTrait
fields() Returns the list of fields that should be returned by default by toArray() when no specific fields are specified. yii\base\ArrayableTrait
toArray() Converts the model into an array. yii\base\ArrayableTrait

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
resolveFields() Determines which fields can be returned by toArray(). yii\base\ArrayableTrait

Method Details

extraFields() public method

Returns the list of fields that can be expanded further and returned by toArray().

This method is similar to fields() except that the list of fields returned by this method are not returned by default by toArray(). Only when field names to be expanded are explicitly specified when calling toArray(), will their values be exported.

The default implementation returns an empty array.

You may override this method to return a list of expandable fields based on some context information (e.g. the current application user).

See also:

public array extraFields ( )
return array

The list of expandable field names or field definitions. Please refer to fields() on the format of the return value.

fields() public method

Returns the list of fields that should be returned by default by toArray() when no specific fields are specified.

A field is a named element in the returned array by toArray().

This method should return an array of field names or field definitions. If the former, the field name will be treated as an object property name whose value will be used as the field value. If the latter, the array key should be the field name while the array value should be the corresponding field definition which can be either an object property name or a PHP callable returning the corresponding field value. The signature of the callable should be:

function ($model, $field) {
    // return field value
}

For example, the following code declares four fields:

  • email: the field name is the same as the property name email;
  • firstName and lastName: the field names are firstName and lastName, and their values are obtained from the first_name and last_name properties;
  • fullName: the field name is fullName. Its value is obtained by concatenating first_name and last_name.
return [
    'email',
    'firstName' => 'first_name',
    'lastName' => 'last_name',
    'fullName' => function () {
        return $this->first_name . ' ' . $this->last_name;
    },
];

In this method, you may also want to return different lists of fields based on some context information. For example, depending on the privilege of the current application user, you may return different sets of visible fields or filter out some fields.

The default implementation of this method returns the public object member variables indexed by themselves.

See also toArray().

public array fields ( )
return array

The list of field names or field definitions.

resolveFields() protected method

Determines which fields can be returned by toArray().

This method will check the requested fields against those declared in fields() and extraFields() to determine which fields can be returned.

protected array resolveFields ( array $fields, array $expand )
$fields array

The fields being requested for exporting

$expand array

The additional fields being requested for exporting

return array

The list of fields to be exported. The array keys are the field names, and the array values are the corresponding object property names or PHP callables returning the field values.

toArray() public method

Converts the model into an array.

This method will first identify which fields to be included in the resulting array by calling resolveFields(). It will then turn the model into an array with these fields. If $recursive is true, any embedded objects will also be converted into arrays.

If the model implements the yii\web\Linkable interface, the resulting array will also have a _link element which refers to a list of links as specified by the interface.

public array toArray ( array $fields = [], array $expand = [], $recursive true )
$fields array

The fields being requested. If empty, all fields as specified by fields() will be returned.

$expand array

The additional fields being requested for exporting. Only fields declared in extraFields() will be considered.

$recursive boolean

Whether to recursively return array representation of embedded objects.

return array

The array representation of the object