/**
  * Create a new instance of the TaoExtensions script and executes it.
  * If the
  * inputFormat parameter is not provided, the script configures itself
  * to foster code reuse.
  *
  * @access public
  * @author Jerome Bogaerts, <*****@*****.**>
  * @param
  *            array inputFormat
  * @param
  *            array options
  * @return mixed
  */
 public function __construct($inputFormat = array(), $options = array())
 {
     if (count($inputFormat) == 0) {
         // Autoconfigure the script.
         $inputFormat = array('min' => 2, 'parameters' => array(array('name' => 'previous', 'type' => 'string', 'shortcut' => 'p', 'description' => 'Previous tao directorty'), array('name' => 'output', 'type' => 'string', 'shortcut' => 'o', 'description' => 'Output folder')));
     }
     parent::__construct($inputFormat, $options);
 }
 /**
  * Create a new instance of the TaoExtensions script and executes it.
  * If the
  * inputFormat parameter is not provided, the script configures itself
  * to foster code reuse.
  *
  * @access public
  * @author Jerome Bogaerts, <*****@*****.**>
  * @param
  *            array inputFormat
  * @param
  *            array options
  * @return mixed
  */
 public function __construct($inputFormat = array(), $options = array())
 {
     if (count($inputFormat) == 0) {
         // Autoconfigure the script.
         $inputFormat = array('min' => 3, 'parameters' => array(array('name' => 'previous', 'type' => 'string', 'shortcut' => 'p', 'description' => 'Previous extension manifest'), array('name' => 'current', 'type' => 'string', 'shortcut' => 'c', 'description' => 'Current extension manifest'), array('name' => 'output', 'type' => 'string', 'shortcut' => 'o', 'description' => 'Output file')));
     }
     parent::__construct($inputFormat, $options);
 }
 public function __construct($inputFormat = array(), $options = array())
 {
     $this->updateQuery = "INSERT INTO statements VALUES (?,?,?,?,?,DEFAULT,'updateScript','yyy[admin,administrators,authors]','yyy[admin,administrators,authors]','yyy[admin,administrators,authors]',CURRENT_TIMESTAMP)";
     $this->namespaceCache = common_ext_NamespaceManager::singleton()->getAllNamespaces();
     parent::__construct($inputFormat, $options);
 }
示例#4
0
 /**
  * Create a new instance of the TaoExtensions script and executes it. If the
  * inputFormat parameter is not provided, the script configures itself
  * to foster code reuse.
  *
  * @access public
  * @author Jerome Bogaerts, <*****@*****.**>
  * @param  array inputFormat
  * @param  array options
  * @return mixed
  */
 public function __construct($inputFormat = array(), $options = array())
 {
     if (count($inputFormat) == 0) {
         // Autoconfigure the script.
         $inputFormat = array('min' => 4, 'parameters' => array(array('name' => 'verbose', 'type' => 'boolean', 'shortcut' => 'v', 'description' => 'Verbose mode (default = false)'), array('name' => 'user', 'type' => 'string', 'shortcut' => 'u', 'description' => 'Generis user (must be a TAO Manager)'), array('name' => 'password', 'type' => 'string', 'shortcut' => 'p', 'description' => 'Generis password'), array('name' => 'action', 'type' => 'string', 'shortcut' => 'a', 'description' => 'Action to perform'), array('name' => 'class', 'type' => 'string', 'shortcut' => 'c', 'description' => 'Class to hardify/unhardify'), array('name' => 'additionalProperties', 'type' => 'string', 'shortcut' => 'aP', 'description' => 'Additional properties to be compiled with the class, separated by commas (",").'), array('name' => 'createForeigns', 'type' => 'boolean', 'shortcut' => 'cF', 'description' => 'Create foreign classes (default = false).'), array('name' => 'topClass', 'type' => 'string', 'shortcut' => 'tC', 'description' => 'The class where to stop in the class hierarchy hardification (default = rdfs:Resource).'), array('name' => 'recursive', 'type' => 'boolean', 'shortcut' => 'r', 'description' => 'Hardify subclasses of the class to hardify or not (default = false).')));
     }
     parent::__construct($inputFormat, $options);
 }
示例#5
0
 /**
  * Create a new instance of the TaoExtensions script and executes it. If the
  * inputFormat parameter is not provided, the script configures itself
  * to foster code reuse.
  *
  * @access public
  * @author Jerome Bogaerts, <*****@*****.**>
  * @param  array inputFormat
  * @param  array options
  * @return mixed
  */
 public function __construct($inputFormat = array(), $options = array())
 {
     if (count($inputFormat) == 0) {
         // Autoconfigure the script.
         $inputFormat = array('min' => 3, 'parameters' => array(array('name' => 'verbose', 'type' => 'boolean', 'shortcut' => 'v', 'description' => 'Verbose mode'), array('name' => 'user', 'type' => 'string', 'shortcut' => 'u', 'description' => 'Generis user (must be a TAO Manager)'), array('name' => 'password', 'type' => 'string', 'shortcut' => 'p', 'description' => 'Generis password'), array('name' => 'action', 'type' => 'string', 'shortcut' => 'a', 'description' => 'Action to perform'), array('name' => 'configParameter', 'type' => 'string', 'shortcut' => 'cP', 'description' => "Configuration parameter (loaded|loadAtStartup|ghost) to change when the 'setConfig' action is called"), array('name' => 'configValue', 'type' => 'boolean', 'shortcut' => 'cV', 'description' => "Configuration value to set when the 'setConfig' action is called"), array('name' => 'extension', 'type' => 'string', 'shortcut' => 'e', 'description' => "Extension ID that determines the TAO extension to focus on"), array('name' => 'data', 'type' => 'boolean', 'shortcut' => 'd', 'description' => "States if local data must be imported or not at installation time")));
     }
     parent::__construct($inputFormat, $options);
 }
 public function __construct($inputFormat = array(), $options = array())
 {
     common_ext_ExtensionsManager::singleton()->getExtensionById('funcAcl');
     parent::__construct($inputFormat, $options);
 }