コード例 #1
0
 /**
  * Constructs a new SetItemField element
  * @param FieldURI $fieldURI URI of the field to save
  * @param Item $item Item containing the field
  * @return null
  */
 public function __construct(PathToUnindexedField $fieldURI, Item $item)
 {
     parent::__construct(self::NAME, $fieldURI);
     $this->item = $item;
 }
コード例 #2
0
 /**
  * Create a new DeleteItemField element
  * @param PathToUnindexedField $fieldURI URI of the field to clear
  * @return null
  */
 public function __construct(PathToUnindexedField $fieldURI)
 {
     parent::__construct(self::NAME, $fieldURI);
 }