コード例 #1
0
 /**
  * Loads a statement with a group that has no members as an actor.
  *
  * @param string $id The id of the new Statement
  *
  * @return Statement
  */
 public static function getStatementWithGroupActorWithoutMembers($id = self::DEFAULT_STATEMENT_ID)
 {
     $group = ActorFixtures::getGroupWithoutMembers();
     $verb = VerbFixtures::getVerb();
     $activity = ActivityFixtures::getActivity();
     return new Statement($id, $group, $verb, $activity);
 }
コード例 #2
0
 public function getObjectsToValidate()
 {
     return array(array(ActivityFixtures::getActivity(), 0), array(new Activity(), 1));
 }
コード例 #3
0
 public static function getAllPropertiesSubStatement()
 {
     return new SubStatement(ActorFixtures::getTypicalAgent(), VerbFixtures::getTypicalVerb(), ActivityFixtures::getTypicalActivity(), ResultFixtures::getTypicalResult(), ContextFixtures::getTypicalContext());
 }
コード例 #4
0
 public static function getAllPropertiesStatement($id = self::DEFAULT_STATEMENT_ID)
 {
     if (null === $id) {
         $id = UuidFixtures::getUniqueUuid();
     }
     return new Statement(StatementId::fromString($id), ActorFixtures::getTypicalAgent(), VerbFixtures::getTypicalVerb(), ActivityFixtures::getTypicalActivity(), ResultFixtures::getAllPropertiesResult(), ActorFixtures::getAccountAgent(), new \DateTime('2013-05-18T05:32:34+00:00'), new \DateTime('2014-07-23T12:34:02-05:00'), ContextFixtures::getAllPropertiesContext(), array(AttachmentFixtures::getTextAttachment()));
 }
コード例 #5
0
 public static function getAllPropertiesActivities()
 {
     return new ContextActivities(array(ActivityFixtures::getTypicalActivity()), array(ActivityFixtures::getTypicalActivity()), array(ActivityFixtures::getTypicalActivity()), array(ActivityFixtures::getTypicalActivity()));
 }
コード例 #6
0
 public function getObjectsToValidate()
 {
     return array(array(ActivityFixtures::getTypicalActivity(), 0), array(new Activity(IRI::fromString('')), 1));
 }