Пример #1
0
 function __construct()
 {
     parent::__construct();
     if (sizeof($this->args) != 1) {
         die("you need to profide a csv file (1st column parent name, 2nd tag name");
     }
     $this->file = $this->args[0];
     $this->tags = array_flip(CRM_Core_PseudoConstant::get('CRM_Core_DAO_EntityTag', 'tag_id', array('onlyActive' => FALSE)));
 }
Пример #2
0
 /**
  */
 public function __construct()
 {
     $this->_required_arguments = array('entity', 'file');
     $this->_additional_arguments = array('f' => 'file');
     parent::initialize();
 }