Example #1
0
 private function getAlbums()
 {
     $album = new Album($this->database, $this->plugins, $this->settings, null);
     echo json_encode($album->getAll(false));
 }
Example #2
0
 public function getPublicAlbums()
 {
     $album = new Album($this->database, null, $this->settings, null);
     return $album->getAll(true);
 }
Example #3
0
		<?php 
echo $form->textField($model, 'name', array('size' => 60, 'maxlength' => 255));
?>
		<?php 
echo $form->error($model, 'name');
?>
	</div>


	<div class="row">
		<?php 
echo $form->labelEx($model, 'album_id');
?>
		<?php 
//echo $form->textField($model,'album_id');
$albums = Album::getAll();
echo $form->dropDownList($model, 'album_id', $albums, array('prompt' => '单曲'));
?>
		<?php 
echo $form->error($model, 'album_id');
?>
	</div>

	<div class="row">
		<?php 
echo $form->labelEx($model, 'artist_id');
?>
		<?php 
//echo $form->textField($model,'artist_id');
echo $form->dropDownList($model, 'artist_id', Artist::getAll());
?>
Example #4
0
 private function getAlbums()
 {
     $album = new Album($this->settings, null);
     echo json_encode($album->getAll(true));
 }