/** * @param ProjectModel $projectModel * @param string $id */ public function __construct($projectModel, $id = '') { $this->id = new Id(); $this->_projectModel = $projectModel; $databaseName = $projectModel->databaseName(); parent::__construct(MessageModelMongoMapper::connect($databaseName), $id); }
/** * QuestionTemplateModel constructor. * @param ProjectModel $projectModel * @param string $id */ public function __construct($projectModel, $id = '') { $this->_projectModel = $projectModel; $this->id = new Id(); $databaseName = $projectModel->databaseName(); parent::__construct(self::mapper($databaseName), $id); }
public function __construct($id = '') { $this->id = new Id(); $this->ownerRef = new IdReference(); $this->users = new MapOf(function () { return new ProjectRoleModel(); }); $this->userJoinRequests = new MapOf(function () { return new ProjectRoleModel(); }); $this->isArchived = false; $this->userProperties = new ProjectUserPropertiesSettings(); $this->allowAudioDownload = true; $this->allowInviteAFriend = true; $this->interfaceLanguageCode = 'en'; $this->setReadOnlyProp('id'); $this->setReadOnlyProp('ownerRef'); $this->setReadOnlyProp('users'); $this->setReadOnlyProp('projectCode'); $this->setReadOnlyProp('siteName'); $this->setReadOnlyProp('appName'); $this->setReadOnlyProp('userProperties'); // There's separate API calls to get/set $userJoinRequests // TODO: Add API calls for $usersRequestingAccess DDW 2016-09 $this->setPrivateProp('userJoinRequests'); $this->setPrivateProp('usersRequestingAccess'); parent::__construct(ProjectModelMongoMapper::instance(), $id); }
/** * UserRelationModel constructor. * @param string $type * @param string $userId * @param string $projectId */ public function __construct($type, $userId, $projectId) { $this->id = new Id(); $this->type = $type; $this->userRef = new IdReference($userId); $this->projectRef = new IdReference($projectId); parent::__construct(self::mapper(), ''); }
public function __construct($projectModel, $id = '') { $this->id = new Id(); $this->_projectModel = $projectModel; $this->isArchived = false; $databaseName = 'sf_jamaican_psalms'; parent::__construct(TextModelMongoMapper_sf_v0_9_18::connect($databaseName), $id); }
/** * @param ProjectModel $projectModel * @param string $id */ public function __construct($projectModel, $id = '') { $this->id = new Id(); $this->itemKeys = new ArrayOf(); $this->name = ""; $databaseName = $projectModel->databaseName(); parent::__construct(self::mapper($databaseName), $id); }
public function __construct($id = '') { $this->id = new Id(); $this->siteRole = new MapOf(); $this->validationExpirationDate = new \DateTime(); $this->resetPasswordExpirationDate = new \DateTime(); // $this->setReadOnlyProp('role'); // TODO Enhance. This currently causes API tests to fail but should be in for security. IJH 2014-03 parent::__construct(UserModelMongoMapper::instance(), $id); }
/** * @param ProjectModel $projectModel * @param string $id */ public function __construct($projectModel, $id = '') { $this->id = new Id(); $this->content = ''; $this->regarding = new SemDomTransFieldReference(); $this->entryRef = new Id(); $databaseName = $projectModel->databaseName(); parent::__construct(self::mapper($databaseName), $id); }
/** * @param string $databaseName * @param string $id */ public function __construct($databaseName, $id = '') { $this->id = new Id(); $this->userRef = new IdReference(); $this->dateCreated = new \DateTime(); $this->dateSent = new \DateTime(); $this->provider = self::SMS_TWILIO; $this->state = self::SMS_NEW; parent::__construct(SmsMongoMapper::connect($databaseName), $id); }
/** * @param ProjectModel $projectModel * @param string $id */ public function __construct($projectModel, $id = '') { $this->items = new ArrayOf(function () { return new LexOptionListItem(); }); $this->id = new Id(); $this->canDelete = true; $databaseName = $projectModel->databaseName(); parent::__construct(self::mapper($databaseName), $id); }
/** * @param ProjectModel $projectModel * @param string $id */ public function __construct($projectModel, $id = '') { $this->setPrivateProp('guid'); $this->setPrivateProp('dirtySR'); $this->setPrivateProp('mercurialSha'); $this->setReadOnlyProp('authorInfo'); $this->initLazyProperties(['lexeme', 'senses', 'authorInfo', 'citationForm', 'customFields', 'entryBibliography', 'entryRestrictions', 'environments', 'etymology', 'etymologyGloss', 'etymologyComment', 'etymologySource', 'literalMeaning', 'location', 'morphologyType', 'note', 'morphType', 'pronunciation', 'cvPattern', 'tone', 'summaryDefinition'], false); $this->isDeleted = false; $this->id = new Id(); $databaseName = $projectModel->databaseName(); parent::__construct(self::mapper($databaseName), $id); }
/** * @param ProjectModel $projectModel * @param string $id */ public function __construct($projectModel, $id = '') { $this->id = new Id(); $this->workflowState = "open"; // default workflow state $this->description = ''; $this->title = ''; $this->textRef = new IdReference(); $this->answers = new MapOf(function () { return new AnswerModel(); }); $databaseName = $projectModel->databaseName(); parent::__construct(QuestionModelMongoMapper::connect($databaseName), $id); }
/** * @param ProjectModel $projectModel * @param string $id */ public function __construct($projectModel, $id = '') { $this->id = new Id(); $this->key = ''; $this->name = new SemDomTransTranslatedForm(); $this->description = new SemDomTransTranslatedForm(); $this->searchKeys = new ArrayOf(function () { return new SemDomTransTranslatedForm(); }); $this->questions = new ArrayOf(function () { return new SemDomTransQuestion(); }); $databaseName = $projectModel->databaseName(); parent::__construct(self::mapper($databaseName), $id); }
/** * @param ProjectModel $projectModel * @param string $id */ public function __construct($projectModel, $id = '') { $this->id = new Id(); $this->projectRef = new IdReference($projectModel->id->asString()); $this->textRef = new IdReference(); $this->questionRef = new IdReference(); $this->userRef = new IdReference(); $this->userRef2 = new IdReference(); $this->entryRef = new IdReference(); $this->action = $this::UNKNOWN; $this->date = new \DateTime(); // set the timestamp to now $this->actionContent = new MapOf(); // strings $this->addContent($this::PROJECT, $projectModel->projectName); $databaseName = $projectModel->databaseName(); parent::__construct(ActivityModelMongoMapper::connect($databaseName), $id); }
/** * @param ProjectModel|LexProjectModel $projectModel * @param string $id */ public function __construct($projectModel, $id = '') { $this->setReadOnlyProp('authorInfo'); $this->setReadOnlyProp('replies'); $this->setReadOnlyProp('score'); $this->setReadOnlyProp('status'); $this->setPrivateProp('isDeleted'); $this->id = new Id(); $this->entryRef = new IdReference(); $this->isDeleted = false; $this->replies = new ArrayOf(function () { return new LexCommentReply(); }); $this->status = self::STATUS_OPEN; $this->score = 0; $this->authorInfo = new LexAuthorInfo(); $this->regarding = new LexCommentFieldReference(); $databaseName = $projectModel->databaseName(); parent::__construct(self::mapper($databaseName), $id); }
public function __construct($id = '') { $this->id = new Id(); parent::__construct(GlobalQuestionTemplateModelMongoMapper::instance(), $id); }
public function __construct($id = '') { $this->id = new Id(); parent::__construct(PasswordModel_MongoMapper::instance(), $id); }