Page MenuHomestyx hydra

HeraldRepetitionPolicyConfig.php
No OneTemporary

HeraldRepetitionPolicyConfig.php

<?php
final class HeraldRepetitionPolicyConfig extends Phobject {
const FIRST = 'first'; // only execute the first time (no repeating)
const EVERY = 'every'; // repeat every time
private static $policyIntMap = array(
self::FIRST => 0,
self::EVERY => 1,
);
public static function getMap() {
return array(
self::EVERY => pht('every time'),
self::FIRST => pht('only the first time'),
);
}
public static function toInt($str) {
return idx(self::$policyIntMap, $str, self::$policyIntMap[self::EVERY]);
}
public static function toString($int) {
return idx(array_flip(self::$policyIntMap), $int, self::EVERY);
}
}

File Metadata

Mime Type
text/x-php
Expires
Tue, Apr 28, 6:00 PM (12 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1335516
Default Alt Text
HeraldRepetitionPolicyConfig.php (683 B)

Event Timeline