public function getFilePath($field = null, $name = null)
    {
        if ($this->pathCallback) {
            return call_user_func([$this->owner, $this->pathCallback]);
        }
        if (($name === null) && (!$name = $this->getFirstFileName())) {
            return false;
        }
        $storage = is_callable($this->storage)
            ? call_user_func($this->storage) : $this->storage;
        $field = $field ? '_' . preg_replace('/[^\-\w]+/', '', $field) : '';
        return \Yii::getAlias(
            $storage 
            . '/' . $this->fileField . $field
            . '/' . preg_replace('/[^\.\-\w]+/', '', $name)
        );
    }
public function getFilePath($field = null, $name = null)
    {
        if ($this->pathCallback) {
            return call_user_func([$this->owner, $this->pathCallback]);
        }
        if (($name === null) && (!$name = $this->getFirstFileName())) {
            return false;
        }
        $storage = is_callable($this->storage)
            ? call_user_func($this->storage) : $this->storage;
        $field = $field ? '_' . preg_replace('/[^\-\w]+/', '', $field) : '';
        return \Yii::getAlias(
            $storage 
            . '/' . $this->fileField . $field
            . '/' . preg_replace('/[^\.\-\w]+/', '', $name)
        );
    }
public function getFilePath ( $ field = null , $ name = null ) { if ( $ this -> pathCallback ) { return call_user_func ( [ $ this -> owner , $ this -> pathCallback ] ) ; } if ( ( $ name === null ) && ( ! $ name = $ this -> getFirstFileName ( ) ) ) { return false ; } $ storage = is_callable ( $ this -> storage ) ? call_user_func ( $ this -> storage ) : $ this -> storage ; $ field = $ field ? '_' . preg_replace ( '/[^\-\w]+/' , '' , $ field ) : '' ; return \ Yii :: getAlias ( $ storage . '/' . $ this -> fileField . $ field . '/' . preg_replace ( '/[^\.\-\w]+/' , '' , $ name ) ) ; }
Gets file full path.
@param null $field
@param null $name
@return bool|mixed|string
Gets file full path .