protected static function mapEntity(Model $model, $row, $alias = 'content') { if (isset($row[$alias . 'Id'])) { $model->setId($row[$alias . 'Id']); } if (isset($row[$alias . 'ModuleId'])) { $model->setModuleId($row[$alias . 'ModuleId']); $model->setModule(\Rebond\Cms\Module\Data::join($row, $alias . '_module')); } if (isset($row[$alias . 'ContentGroup'])) { $model->setContentGroup($row[$alias . 'ContentGroup']); } if (isset($row[$alias . 'FilterId'])) { $model->setFilterId($row[$alias . 'FilterId']); $model->setFilter(\Rebond\Cms\Filter\Data::join($row, $alias . '_filter')); } if (isset($row[$alias . 'AuthorId'])) { $model->setAuthorId($row[$alias . 'AuthorId']); $model->setAuthor(\Rebond\Core\User\Data::join($row, $alias . '_author')); } if (isset($row[$alias . 'PublisherId'])) { $model->setPublisherId($row[$alias . 'PublisherId']); $model->setPublisher(\Rebond\Core\User\Data::join($row, $alias . '_publisher')); } if (isset($row[$alias . 'Title'])) { $model->setTitle($row[$alias . 'Title']); } if (isset($row[$alias . 'UrlFriendlyTitle'])) { $model->setUrlFriendlyTitle($row[$alias . 'UrlFriendlyTitle']); } if (isset($row[$alias . 'UseExpiration'])) { $model->setUseExpiration($row[$alias . 'UseExpiration']); } if (isset($row[$alias . 'GoLiveDate'])) { $model->setGoLiveDate($row[$alias . 'GoLiveDate']); } if (isset($row[$alias . 'ExpiryDate'])) { $model->setExpiryDate($row[$alias . 'ExpiryDate']); } if (isset($row[$alias . 'PublishedDate'])) { $model->setPublishedDate($row[$alias . 'PublishedDate']); } if (isset($row[$alias . 'Version'])) { $model->setVersion($row[$alias . 'Version']); } if (isset($row[$alias . 'CreatedDate'])) { $model->setCreatedDate($row[$alias . 'CreatedDate']); } if (isset($row[$alias . 'ModifiedDate'])) { $model->setModifiedDate($row[$alias . 'ModifiedDate']); } return $model; }
protected static function mapper(array $row, $alias = 'log') { $model = new \Rebond\Core\Log\Model(false); if (isset($row[$alias . 'Id'])) { $model->setId($row[$alias . 'Id']); } if (isset($row[$alias . 'Code'])) { $model->setCode($row[$alias . 'Code']); } if (isset($row[$alias . 'UserId'])) { $model->setUserId($row[$alias . 'UserId']); $model->setUser(\Rebond\Core\User\Data::join($row, $alias . '_user')); } if (isset($row[$alias . 'Ip'])) { $model->setIp($row[$alias . 'Ip']); } if (isset($row[$alias . 'RequestUri'])) { $model->setRequestUri($row[$alias . 'RequestUri']); } if (isset($row[$alias . 'Referer'])) { $model->setReferer($row[$alias . 'Referer']); } if (isset($row[$alias . 'Message'])) { $model->setMessage($row[$alias . 'Message']); } if (isset($row[$alias . 'Trace'])) { $model->setTrace($row[$alias . 'Trace']); } if (isset($row[$alias . 'File'])) { $model->setFile($row[$alias . 'File']); } if (isset($row[$alias . 'Line'])) { $model->setLine($row[$alias . 'Line']); } if (isset($row[$alias . 'Status'])) { $model->setStatus($row[$alias . 'Status']); } if (isset($row[$alias . 'CreatedDate'])) { $model->setCreatedDate($row[$alias . 'CreatedDate']); } if (isset($row[$alias . 'ModifiedDate'])) { $model->setModifiedDate($row[$alias . 'ModifiedDate']); } return $model; }
protected static function mapper(array $row, $alias = 'feedback') { $model = new \Rebond\Core\Feedback\Model(false); if (isset($row[$alias . 'Id'])) { $model->setId($row[$alias . 'Id']); } if (isset($row[$alias . 'UserId'])) { $model->setUserId($row[$alias . 'UserId']); $model->setUser(\Rebond\Core\User\Data::join($row, $alias . '_user')); } if (isset($row[$alias . 'Title'])) { $model->setTitle($row[$alias . 'Title']); } if (isset($row[$alias . 'Type'])) { $model->setType($row[$alias . 'Type']); } if (isset($row[$alias . 'Description'])) { $model->setDescription($row[$alias . 'Description']); } if (isset($row[$alias . 'Status'])) { $model->setStatus($row[$alias . 'Status']); } if (isset($row[$alias . 'CreatedDate'])) { $model->setCreatedDate($row[$alias . 'CreatedDate']); } if (isset($row[$alias . 'ModifiedDate'])) { $model->setModifiedDate($row[$alias . 'ModifiedDate']); } return $model; }
protected static function mapper(array $row, $alias = 'user_security') { $model = new \Rebond\Core\UserSecurity\Model(false); if (isset($row[$alias . 'Id'])) { $model->setId($row[$alias . 'Id']); } if (isset($row[$alias . 'UserId'])) { $model->setUserId($row[$alias . 'UserId']); $model->setUser(\Rebond\Core\User\Data::join($row, $alias . '_user')); } if (isset($row[$alias . 'SignIn'])) { $model->setSignIn($row[$alias . 'SignIn']); } if (isset($row[$alias . 'Secure'])) { $model->setSecure($row[$alias . 'Secure']); } if (isset($row[$alias . 'Type'])) { $model->setType($row[$alias . 'Type']); } if (isset($row[$alias . 'CreatedDate'])) { $model->setCreatedDate($row[$alias . 'CreatedDate']); } return $model; }
protected static function mapper(array $row, $alias = 'user_settings') { $model = new \Rebond\Cms\UserSettings\Model(false); if (isset($row[$alias . 'Id'])) { $model->setId($row[$alias . 'Id']); } if (isset($row[$alias . 'UserId'])) { $model->setUserId($row[$alias . 'UserId']); $model->setUser(\Rebond\Core\User\Data::join($row, $alias . '_user')); } if (isset($row[$alias . 'MediaView'])) { $model->setMediaView($row[$alias . 'MediaView']); } if (isset($row[$alias . 'MediaPaging'])) { $model->setMediaPaging($row[$alias . 'MediaPaging']); } if (isset($row[$alias . 'ContentPaging'])) { $model->setContentPaging($row[$alias . 'ContentPaging']); } if (isset($row[$alias . 'Paging'])) { $model->setPaging($row[$alias . 'Paging']); } return $model; }
protected static function mapper(array $row, $alias = 'user_role') { $model = new \Rebond\Core\UserRole\Model(false); if (isset($row[$alias . 'UserId'])) { $model->setUserId($row[$alias . 'UserId']); $model->setUser(\Rebond\Core\User\Data::join($row, $alias . '_user')); } if (isset($row[$alias . 'RoleId'])) { $model->setRoleId($row[$alias . 'RoleId']); $model->setRole(\Rebond\Core\Role\Data::join($row, $alias . '_role')); } return $model; }