public function addScriptDir($new_dir, $position = 1)
    {
        if (true === file_exists($new_dir) && true === is_dir($new_dir)) {
            $this->insertInArrayOnPostion($this->_scriptdir, $new_dir, $position);
        }

        return $this;
    }
public function addScriptDir($new_dir, $position = 1)
    {
        if (true === file_exists($new_dir) && true === is_dir($new_dir)) {
            $this->insertInArrayOnPostion($this->_scriptdir, $new_dir, $position);
        }

        return $this;
    }
public function addScriptDir ( $ new_dir , $ position = 1 ) { if ( true === file_exists ( $ new_dir ) && true === is_dir ( $ new_dir ) ) { $ this -> insertInArrayOnPostion ( $ this -> _scriptdir , $ new_dir , $ position ) ; } return $ this ; }
Add new script directory in the choosen position.

@codeCoverageIgnore

@param strimg  $new_dir  location of the new directory
@param integer $position position in the array
Add new script directory in the choosen position .