common/services/resources/ModelCommentService.php
public function getPageForApproved( $config = [] ) {

		$modelTable	= $this->getModelTable();
		$topLevel	= isset( $config[ 'topLevel' ] ) ? $config[ 'topLevel' ] : true;

		if( $topLevel ) {

			$config[ 'conditions' ][ 'baseId' ] = null;
		}

		$config[ 'conditions' ][ "$modelTable.status" ]	= ModelComment::STATUS_APPROVED;

		return $this->getPage( $config );
	}
public function getPageForApproved( $config = [] ) {

		$modelTable	= $this->getModelTable();
		$topLevel	= isset( $config[ 'topLevel' ] ) ? $config[ 'topLevel' ] : true;

		if( $topLevel ) {

			$config[ 'conditions' ][ 'baseId' ] = null;
		}

		$config[ 'conditions' ][ "$modelTable.status" ]	= ModelComment::STATUS_APPROVED;

		return $this->getPage( $config );
	}
public function getPageForApproved ( $ config = [ ] ) { $ modelTable = $ this -> getModelTable ( ) ; $ topLevel = isset ( $ config [ 'topLevel' ] ) ? $ config [ 'topLevel' ] : true ; if ( $ topLevel ) { $ config [ 'conditions' ] [ 'baseId' ] = null ; } $ config [ 'conditions' ] [ "$modelTable.status" ] = ModelComment :: STATUS_APPROVED ; return $ this -> getPage ( $ config ) ; }
We can pass parentType as condition to utilize the classification.
We can pass parentType as condition to utilize the classification .