Page MenuHomestyx hydra

AlmanacDeletePropertyEditType.php
No OneTemporary

AlmanacDeletePropertyEditType.php

<?php
final class AlmanacDeletePropertyEditType
extends PhabricatorEditType {
public function generateTransactions(
PhabricatorApplicationTransaction $template,
array $spec) {
$value = idx($spec, 'value');
if (!is_array($value)) {
throw new Exception(
pht(
'Transaction value when deleting Almanac properties must be a list '.
'of property names.'));
}
$xactions = array();
foreach ($value as $idx => $property_key) {
if (!is_string($property_key)) {
throw new Exception(
pht(
'When deleting Almanac properties, each property name must '.
'be a string. The value at index "%s" is not a string.',
$idx));
}
$xactions[] = $this->newTransaction($template)
->setMetadataValue('almanac.property', $property_key)
->setNewValue(true);
}
return $xactions;
}
}

File Metadata

Mime Type
text/x-php
Expires
Wed, Nov 26, 7:21 PM (6 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
356875
Default Alt Text
AlmanacDeletePropertyEditType.php (923 B)

Event Timeline